Skip to content
Snippets Groups Projects
Commit d446a965 authored by Simon Knox's avatar Simon Knox Committed by Mike Greiling
Browse files

Hide project action buttons behind feature flag

Test removing the buttons from project page, leave them
on Empty repo page, but otherwise these buttons can use
the New File > Template. File list page is for browsing
files
parent 3b48b7a8
No related branches found
No related tags found
1 merge request!90767Add space between buttons on empty project page
......@@ -128,10 +128,6 @@
> li {
display: inline-block;
&:not(:last-child) {
margin-right: $gl-padding;
}
&.right {
vertical-align: top;
margin-top: 0;
......@@ -179,7 +175,6 @@
}
.btn {
margin-bottom: $gl-padding-8;
padding: $gl-btn-vert-padding $gl-btn-padding;
line-height: $gl-btn-line-height;
......@@ -190,12 +185,6 @@
}
}
.project-buttons {
.nav > li:not(:last-child) {
margin-right: $gl-padding-8;
}
}
.git-empty {
margin-bottom: 7px;
......
......@@ -16,7 +16,7 @@
#js-code-owners
- if is_project_overview
.project-buttons.gl-mb-3.js-show-on-project-root
.project-buttons.gl-mb-5.js-show-on-project-root
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout), project_buttons: true
#js-tree-list{ data: vue_file_list_data(project, ref) }
......
......@@ -2,7 +2,7 @@
- project_buttons = local_assigns.fetch(:project_buttons, false)
- return unless anchors.any?
%ul.nav
%ul.nav.gl-gap-3
- anchors.each do |anchor|
%li.nav-item
= link_to_if(anchor.link, anchor.label, anchor.link, stat_anchor_attrs(anchor)) do
......
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