BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9182583e
Commit
9182583e
authored
Jul 18, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove needless rails helper
parent
ce9a4ea6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
javascript_helper.rb
app/helpers/javascript_helper.rb
+0
-6
_head.html.haml
app/views/layouts/_head.html.haml
+0
-2
show.html.haml
app/views/projects/blob/show.html.haml
+2
-1
show.html.haml
app/views/projects/tree/show.html.haml
+4
-0
No files found.
app/helpers/javascript_helper.rb
View file @
9182583e
...
@@ -7,10 +7,4 @@ module JavascriptHelper
...
@@ -7,10 +7,4 @@ module JavascriptHelper
def
page_specific_javascript_bundle_tag
(
bundle
)
def
page_specific_javascript_bundle_tag
(
bundle
)
webpack_bundle_tag
(
bundle
)
webpack_bundle_tag
(
bundle
)
end
end
def
repo_bundle_tags
return
unless
body_data_page
=~
/projects\:(tree|blob)\:show/
webpack_bundle_tag
(
'repo'
)
end
end
end
app/views/layouts/_head.html.haml
View file @
9182583e
...
@@ -40,8 +40,6 @@
...
@@ -40,8 +40,6 @@
=
webpack_bundle_tag
"test"
if
Rails
.
env
.
test?
=
webpack_bundle_tag
"test"
if
Rails
.
env
.
test?
=
webpack_bundle_tag
'peek'
if
peek_enabled?
=
webpack_bundle_tag
'peek'
if
peek_enabled?
=
repo_bundle_tags
-
if
content_for?
(
:page_specific_javascripts
)
-
if
content_for?
(
:page_specific_javascripts
)
=
yield
:page_specific_javascripts
=
yield
:page_specific_javascripts
...
...
app/views/projects/blob/show.html.haml
View file @
9182583e
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
=
render
"projects/commits/head"
=
render
"projects/commits/head"
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'blob'
)
=
webpack_bundle_tag
'blob'
=
webpack_bundle_tag
'repo'
=
render
'projects/last_push'
=
render
'projects/last_push'
...
...
app/views/projects/tree/show.html.haml
View file @
9182583e
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
-
page_title
@path
.
presence
||
_
(
"Files"
),
@ref
-
page_title
@path
.
presence
||
_
(
"Files"
),
@ref
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
rss_url_options
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
rss_url_options
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'repo'
=
render
"projects/commits/head"
=
render
"projects/commits/head"
=
render
'projects/last_push'
=
render
'projects/last_push'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment