summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-05 12:59:55 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-05 13:02:37 +0300
commit0ce39d4556a3ba1e5e9e75fb32f1bacc54354986 (patch)
treefc2d0b199c1af0ee61c908193e0bcf002f4ae255 /app/views/groups
parent623ef392e562a7d8d6db2599227c89f0a0799037 (diff)
downloadgitlab-ce-0ce39d4556a3ba1e5e9e75fb32f1bacc54354986.tar.gz
Remove unnecessary logic from group labels page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups')
-rw-r--r--app/views/groups/labels/index.html.haml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/groups/labels/index.html.haml b/app/views/groups/labels/index.html.haml
index d63ef477177..e6821009d03 100644
--- a/app/views/groups/labels/index.html.haml
+++ b/app/views/groups/labels/index.html.haml
@@ -1,7 +1,6 @@
- @no_container = true
- page_title "Labels"
- can_admin_label = can?(current_user, :admin_label, @group)
-- hide = @available_labels.empty? || (params[:page].present? && params[:page] != '1')
- issuables = ['issues', 'merge requests']
- search = params[:search]
@@ -27,8 +26,7 @@
.labels-container.prepend-top-5
- if @labels.any?
.other-labels
- - if can_admin_label
- %h5{ class: ('hide' if hide) } Labels
+ %h5= _('Labels')
%ul.content-list.manage-labels-list.js-other-labels
= render partial: 'shared/label', subject: @group, collection: @labels, as: :label, locals: { use_label_priority: false }
= paginate @labels, theme: 'gitlab'