Commit 9182583e authored by Mike Greiling's avatar Mike Greiling

remove needless rails helper

parent ce9a4ea6
...@@ -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
...@@ -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
......
...@@ -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'
......
...@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment