Commit 8d454b8e authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

move new repo to shared view and only load it and repo bundle with new_repo is true

parent 834ebc3e
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
- content_for :page_specific_javascripts do - content_for :page_specific_javascripts do
= webpack_bundle_tag 'blob' = webpack_bundle_tag 'blob'
= webpack_bundle_tag 'common_vue' = webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
= render 'projects/last_push' = render 'projects/last_push'
......
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
= content_for :meta_tags do = content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_path(@project, rss_url_options), title: "#{@project.name} activity") = auto_discovery_link_tag(:atom, project_path(@project, rss_url_options), title: "#{@project.name} activity")
- content_for :page_specific_javascripts do - if show_new_repo?
= webpack_bundle_tag 'common_vue' - content_for :page_specific_javascripts do
= webpack_bundle_tag 'repo' = webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
= render partial: 'flash_messages', locals: { project: @project } = render partial: 'flash_messages', locals: { project: @project }
......
#repo{ data: { url: repo_url(@project), 'project-name' => @project.name, refs_url: refs_namespace_project_path(@project.namespace, @project, format: "json"), project_url: namespace_project_path(@project.namespace, @project), project_id: @project.id } } - if show_new_repo?
= render 'shared/repo', project: @project
:javascript :javascript
// Load last commit log for each file in tree // Load last commit log for each file in tree
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
= content_for :meta_tags do = content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits") = auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
- content_for :page_specific_javascripts do - if show_new_repo?
= webpack_bundle_tag 'common_vue' - content_for :page_specific_javascripts do
= webpack_bundle_tag 'repo' = webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
= render "projects/commits/head" = render "projects/commits/head"
......
#repo{ data: { url: repo_url(project), project_name: project.name, refs_url: refs_project_path(project, format: :json), project_url: project_path(project), project_id: project.id } }
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