Fix spec
This commit is contained in:
parent
a30b51fa94
commit
119b128ec8
1 changed files with 7 additions and 8 deletions
|
@ -14,14 +14,13 @@
|
||||||
- if @project
|
- if @project
|
||||||
%li.inline
|
%li.inline
|
||||||
.label-badge.label-badge-gray= label.model_name.human.capitalize
|
.label-badge.label-badge-gray= label.model_name.human.capitalize
|
||||||
- if can?(current_user, :admin_label, label)
|
- if can?(current_user, :admin_label, @project)
|
||||||
- if @project
|
%li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label),
|
||||||
%li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label),
|
dom_id: dom_id(label), type: label.type } }
|
||||||
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') }
|
||||||
%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')
|
||||||
= 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') }
|
||||||
%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')
|
||||||
= sprite_icon('star')
|
|
||||||
%li.inline
|
%li.inline
|
||||||
= link_to edit_label_path(label), class: 'btn btn-transparent label-action', aria_label: 'Edit label' do
|
= link_to edit_label_path(label), class: 'btn btn-transparent label-action', aria_label: 'Edit label' do
|
||||||
= sprite_icon('pencil')
|
= sprite_icon('pencil')
|
||||||
|
|
Loading…
Reference in a new issue