summaryrefslogtreecommitdiff
path: root/app/views/groups/labels
diff options
context:
space:
mode:
authorGeorge Tsiolis <tsiolis.g@gmail.com>2018-11-01 14:15:37 +0200
committerGeorge Tsiolis <tsiolis.g@gmail.com>2018-11-02 09:26:58 +0200
commit47e6df1bcacfd41926840993b839df04e8c8f6d6 (patch)
tree2dec031bda5cf7385031eece00a3cc7c958c3384 /app/views/groups/labels
parent88224ccea67290e1bfa600379715ab278984ccdf (diff)
downloadgitlab-ce-47e6df1bcacfd41926840993b839df04e8c8f6d6.tar.gz
Update project and group labels empty state
Diffstat (limited to 'app/views/groups/labels')
-rw-r--r--app/views/groups/labels/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/labels/index.html.haml b/app/views/groups/labels/index.html.haml
index 5b78ce910b8..4df3d831942 100644
--- a/app/views/groups/labels/index.html.haml
+++ b/app/views/groups/labels/index.html.haml
@@ -6,7 +6,7 @@
- subscribed = params[:subscribed]
- labels_or_filters = @labels.exists? || search.present? || subscribed.present?
-- if can_admin_label
+- 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"