summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-06 20:39:50 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-06 20:39:50 +0100
commit119b128ec8415a074a73b73a7878717779c6e0f3 (patch)
tree37a2e5f5fd568fd59434bccce6cf8fc7aa768830
parenta30b51fa9400d0fee06532fa99a1fa14e694b2c4 (diff)
downloadgitlab-ce-119b128ec8415a074a73b73a7878717779c6e0f3.tar.gz
Fix spec
-rw-r--r--app/views/shared/_label.html.haml15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index c34d63ba5c3..5eec7b02b54 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -14,14 +14,13 @@
- if @project
%li.inline
.label-badge.label-badge-gray= label.model_name.human.capitalize
- - 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')
+ - 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')
%li.inline
= link_to edit_label_path(label), class: 'btn btn-transparent label-action', aria_label: 'Edit label' do
= sprite_icon('pencil')