From 0ce39d4556a3ba1e5e9e75fb32f1bacc54354986 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 5 Sep 2018 12:59:55 +0300 Subject: Remove unnecessary logic from group labels page Signed-off-by: Dmitriy Zaporozhets --- app/views/groups/labels/index.html.haml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/views/groups') 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' -- cgit v1.2.1