diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-25 11:56:54 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-25 11:56:54 +0100 |
commit | e5ae43e23ffd8d75865a3572439afe40a0dd9444 (patch) | |
tree | fc181741aae1677c5af3a5a70ba09997a18ee5b8 /app/views/shared/_label.html.haml | |
parent | a72fc8e650128d56ec9af1f3ea5960c0f4321db0 (diff) | |
download | gitlab-ce-e5ae43e23ffd8d75865a3572439afe40a0dd9444.tar.gz |
Start changing group label page
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r-- | app/views/shared/_label.html.haml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml index bccca0bb7d6..ec84c565aae 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -6,17 +6,18 @@ - show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project) %li.label-list-item{ id: label_css_id, data: { id: label.id } } - = render "shared/label_row", label: label + = 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 can?(current_user, :admin_label, @project) - %li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label), - dom_id: dom_id(label), type: label.type } } - %button.label-action.add-priority.btn.btn-transparent.has-tooltip{ title: 'Prioritize', type: 'button', :'data-placement' => 'top' } - = icon('star-o') - %button.label-action.remove-priority.btn.btn-transparent.has-tooltip{ title: 'Remove priority', type: 'button', :'data-placement' => 'top' } - = icon('star') + - if can?(current_user, :admin_label, label) + - if subject.is_a?(Project) + %li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label), + dom_id: dom_id(label), type: label.type } } + %button.label-action.add-priority.btn.btn-transparent.has-tooltip{ title: 'Prioritize', type: 'button', :'data-placement' => 'top' } + = icon('star-o') + %button.label-action.remove-priority.btn.btn-transparent.has-tooltip{ title: 'Remove priority', type: 'button', :'data-placement' => 'top' } + = icon('star') %li.inline = link_to edit_label_path(label), class: 'btn btn-transparent label-action' do = icon('pencil') |