diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-19 03:17:29 +0300 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-19 03:17:29 +0300 |
commit | c9f23ffe5bb4cc5bf28e28e7736d867ec0de5443 (patch) | |
tree | 2e23fd50c2e24427573ad9a4a243a0b5100b024a /app/views/shared/_label.html.haml | |
parent | d0d521f362b5f8ba67e1a8b259db48d4b2a9b541 (diff) |
Remove unneeded inlines and remove hand where needed
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 578c6c73fe2..8302918ebc9 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -5,9 +5,9 @@ - show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project) - show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project) -%li.label-list-item{ id: label_css_id, data: { id: label.id } } +%li.label-list-item{ class: label.priorities.present? ? '' : 'no-hand', id: label_css_id, data: { id: label.id } } = render "shared/label_row", label: label - %ul.label-actions-list.inline + %ul.label-actions-list %li.inline .label-badge.label-badge-gray= label.model_name.human.titleize - if can?(current_user, :admin_label, @project) @@ -53,5 +53,6 @@ %span Subscribe at group level - else %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ data: { status: status, url: toggle_subscription_path } } + %span= label_subscription_toggle_button_text(label, @project) = render 'shared/delete_label_modal', label: label |