summaryrefslogtreecommitdiff
path: root/app/views/groups/labels/index.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-03 12:51:35 +0100
committerPhil Hughes <me@iamphill.com>2017-07-03 12:51:35 +0100
commit6184197fb0b2a741616b5a7802bb16daf12bd7a4 (patch)
treeec293e443036e072a11a73ba6f4fc2df9aef9c8d /app/views/groups/labels/index.html.haml
parent08a0af9fcf4de2ae1f56c46104eb0ae171db38df (diff)
downloadgitlab-ce-6184197fb0b2a741616b5a7802bb16daf12bd7a4.tar.gz
more action button movements
fixed eslint failures fixed project select dropdown not working on some pages
Diffstat (limited to 'app/views/groups/labels/index.html.haml')
-rw-r--r--app/views/groups/labels/index.html.haml10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/groups/labels/index.html.haml b/app/views/groups/labels/index.html.haml
index 2bc00fb16c8..50179a47797 100644
--- a/app/views/groups/labels/index.html.haml
+++ b/app/views/groups/labels/index.html.haml
@@ -1,14 +1,18 @@
- page_title 'Labels'
+- if show_new_nav? && can?(current_user, :admin_label, @group)
+ - content_for :breadcrumbs_extra do
+ = link_to "New label", new_group_label_path(@group), class: "btn btn-new"
+
= render "groups/head_issues"
+
.top-area.adjust
.nav-text
Labels can be applied to issues and merge requests. Group labels are available for any project within the group.
- .nav-controls
+ .nav-controls{ class: ("visible-xs" if show_new_nav?) }
- if can?(current_user, :admin_label, @group)
- = link_to new_group_label_path(@group), class: "btn btn-new" do
- New label
+ = link_to "New label", new_group_label_path(@group), class: "btn btn-new"
.labels
.other-labels