BigW Consortium Gitlab

Disable new repo on project show

parent 91a60743
......@@ -349,8 +349,6 @@ import FeatureHelper from './helpers/feature_helper';
shortcut_handler = new ShortcutsNavigation();
new NotificationsForm();
if (FeatureHelper.isNewRepo()) break;
if ($('#tree-slider').length) new TreeView();
if ($('.blob-viewer').length) new BlobViewer();
break;
......
......@@ -307,6 +307,6 @@ module ApplicationHelper
end
def show_new_repo?
cookies["new_repo"] == "true"
cookies["new_repo"] == "true" && body_data_page != 'projects:show'
end
end
......@@ -5,11 +5,6 @@
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_path(@project, rss_url_options), title: "#{@project.name} activity")
- if show_new_repo?
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
= render partial: 'flash_messages', locals: { project: @project }
= render "projects/head"
......
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