summaryrefslogtreecommitdiff
path: root/app/views/shared/labels
diff options
context:
space:
mode:
authorMartin Hobert <info@dosh.dk>2019-01-22 17:42:10 +0000
committerAnnabel Dunstone Gray <annabel.m.gray@gmail.com>2019-01-22 17:42:10 +0000
commitfe823be926ece8f73b06dc6528221306431ff895 (patch)
tree4824b94eb9ce5e358412ec62665f5e5cd1ef7463 /app/views/shared/labels
parent30c141c99018eefd7992149e6ce4d4ffdac066a4 (diff)
downloadgitlab-ce-fe823be926ece8f73b06dc6528221306431ff895.tar.gz
fix(labels): Move the primary button out of breadcrumbs and into the project section
Diffstat (limited to 'app/views/shared/labels')
-rw-r--r--app/views/shared/labels/_nav.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/shared/labels/_nav.html.haml b/app/views/shared/labels/_nav.html.haml
index 98572db738b..e69246dd0eb 100644
--- a/app/views/shared/labels/_nav.html.haml
+++ b/app/views/shared/labels/_nav.html.haml
@@ -18,3 +18,7 @@
%button.btn.btn-default{ type: "submit", "aria-label" => _('Submit search') }
= icon("search")
= render 'shared/labels/sort_dropdown'
+ - if labels_or_filters && can_admin_label && @project
+ = link_to _('New label'), new_project_label_path(@project), class: "btn btn-success qa-label-create-new"
+ - if labels_or_filters && can_admin_label && @group
+ = link_to _('New label'), new_group_label_path(@group), class: "btn btn-success qa-label-create-new"