diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-17 18:18:56 +0300 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-17 18:18:56 +0300 |
commit | e1ef4ac620d691af9f1d74da7e821acaa7577102 (patch) | |
tree | 5cc902a4b9e99fd78df2b74bd4392dcd90b89262 /app/views/shared/_label.html.haml | |
parent | 2fd334b86a33cd96c7708980e1f9cd7f8717877a (diff) |
Remove group label badge on group labels page
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r-- | app/views/shared/_label.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml index 1f41cb26588..6272189e289 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -9,8 +9,9 @@ %li.label-list-item{ id: label_css_id, data: { id: label.id } } = render "shared/label_row", label: label, subject: subject %ul.label-actions-list - %li.inline - .label-badge.label-badge-gray= label.model_name.human.capitalize + - if controller.is_a?(Projects::LabelsController) + %li.inline + .label-badge.label-badge-gray= label.model_name.human.capitalize - if can?(current_user, :admin_label, label) - if @project.present? %li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label), |