remove needless rails helper
This commit is contained in:
parent
ce9a4ea67d
commit
9182583e1f
4 changed files with 6 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue