summaryrefslogtreecommitdiff
path: root/app/views/projects/labels
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 10:58:24 +0000
committerTim Zallmann <tzallmann@gitlab.com>2017-09-06 10:58:24 +0000
commitddb3692a2218e97dfcc256e21a0fccc97c5d9a56 (patch)
treeaabb5e0b0d6f37ee068a8804ccef46b994d4afba /app/views/projects/labels
parentf497f170697c838747bb7cdaca2d1939f843a00c (diff)
downloadgitlab-ce-ddb3692a2218e97dfcc256e21a0fccc97c5d9a56.tar.gz
Clean up new navigation templates
Diffstat (limited to 'app/views/projects/labels')
-rw-r--r--app/views/projects/labels/index.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/labels/index.html.haml b/app/views/projects/labels/index.html.haml
index 4b9da02c6b8..ec9e8444ac5 100644
--- a/app/views/projects/labels/index.html.haml
+++ b/app/views/projects/labels/index.html.haml
@@ -3,7 +3,7 @@
- hide_class = ''
- can_admin_label = can?(current_user, :admin_label, @project)
-- if show_new_nav? && can?(current_user, :admin_label, @project)
+- if can?(current_user, :admin_label, @project)
- content_for :breadcrumbs_extra do
= link_to "New label", new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new"
@@ -18,7 +18,7 @@
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
- if can_admin_label
- .nav-controls{ class: ("visible-xs" if show_new_nav?) }
+ .nav-controls.visible-xs
= link_to new_project_label_path(@project), class: "btn btn-new" do
New label