summaryrefslogtreecommitdiff
path: root/app/views/groups
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/groups
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/groups')
-rw-r--r--app/views/groups/labels/index.html.haml7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/groups/labels/index.html.haml b/app/views/groups/labels/index.html.haml
index 4df3d831942..5cf3193bc62 100644
--- a/app/views/groups/labels/index.html.haml
+++ b/app/views/groups/labels/index.html.haml
@@ -6,15 +6,10 @@
- subscribed = params[:subscribed]
- labels_or_filters = @labels.exists? || search.present? || subscribed.present?
-- if @labels.present? && can_admin_label
- - content_for(:header_content) do
- .nav-controls
- = link_to _('New label'), new_group_label_path(@group), class: "btn btn-success"
-
- if labels_or_filters
#promote-label-modal
%div{ class: container_class }
- = render 'shared/labels/nav'
+ = render 'shared/labels/nav', labels_or_filters: labels_or_filters, can_admin_label: can_admin_label
.labels-container.prepend-top-5
- if @labels.any?