Skip to content
Snippets Groups Projects
Commit 9182583e authored by Mike Greiling's avatar Mike Greiling
Browse files

remove needless rails helper

parent ce9a4ea6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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'
 
Loading
Loading
Loading
Loading
@@ -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'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment