diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-09-05 12:59:55 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-09-05 13:02:37 +0300 |
commit | 0ce39d4556a3ba1e5e9e75fb32f1bacc54354986 (patch) | |
tree | fc2d0b199c1af0ee61c908193e0bcf002f4ae255 /app/views/groups | |
parent | 623ef392e562a7d8d6db2599227c89f0a0799037 (diff) | |
download | gitlab-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.haml | 4 |
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' |