Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
app/helpers/javascript_helper.rb
app/helpers/javascript_helper.rb
+0
-6
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+0
-2
app/views/projects/blob/show.html.haml
app/views/projects/blob/show.html.haml
+2
-1
app/views/projects/tree/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
def
page_specific_javascript_bundle_tag
(
bundle
)
webpack_bundle_tag
(
bundle
)
end
def
repo_bundle_tags
return
unless
body_data_page
=~
/projects\:(tree|blob)\:show/
webpack_bundle_tag
(
'repo'
)
end
end
app/views/layouts/_head.html.haml
View file @
9182583e
...
...
@@ -40,8 +40,6 @@
=
webpack_bundle_tag
"test"
if
Rails
.
env
.
test?
=
webpack_bundle_tag
'peek'
if
peek_enabled?
=
repo_bundle_tags
-
if
content_for?
(
:page_specific_javascripts
)
=
yield
:page_specific_javascripts
...
...
app/views/projects/blob/show.html.haml
View file @
9182583e
...
...
@@ -4,7 +4,8 @@
=
render
"projects/commits/head"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'blob'
)
=
webpack_bundle_tag
'blob'
=
webpack_bundle_tag
'repo'
=
render
'projects/last_push'
...
...
app/views/projects/tree/show.html.haml
View file @
9182583e
...
...
@@ -3,6 +3,10 @@
-
page_title
@path
.
presence
||
_
(
"Files"
),
@ref
=
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"
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'repo'
=
render
"projects/commits/head"
=
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