diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-06-06 16:52:53 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-06-06 16:52:53 +0100 |
commit | 282338d8f5fbef1b3bead07e9ca7b339bd781b85 (patch) | |
tree | 6a8c30f5fc5a9af399112ea6b8f7a48ed6e4a9a3 /app/views/shared/_label.html.haml | |
parent | 8a70bbad566865bd35744673d5dda38ca0c90d96 (diff) | |
download | gitlab-ce-282338d8f5fbef1b3bead07e9ca7b339bd781b85.tar.gz |
UX review
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r-- | app/views/shared/_label.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml index 658d546a4a4..4725951b22d 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -14,13 +14,14 @@ - if @project %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' }, aria_label: _('Prioritize label') } - = sprite_icon('star-o') - %button.label-action.remove-priority.btn.btn-transparent.has-tooltip{ title: _('Remove priority'), type: 'button', data: { placement: 'top' }, aria_label: _('Deprioritize label') } - = sprite_icon('star') + - if can?(current_user, :admin_label, label) + - if @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' }, aria_label: _('Prioritize label') } + = sprite_icon('star-o') + %button.label-action.remove-priority.btn.btn-transparent.has-tooltip{ title: _('Remove priority'), type: 'button', data: { placement: 'top' }, aria_label: _('Deprioritize label') } + = sprite_icon('star') %li.inline = link_to edit_label_path(label), class: 'btn btn-transparent label-action', aria_label: 'Edit label' do = sprite_icon('pencil') |