This commit is contained in:
Luke Bennett 2018-06-06 20:39:50 +01:00
parent a30b51fa94
commit 119b128ec8
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -14,8 +14,7 @@
- if @project
%li.inline
.label-badge.label-badge-gray= label.model_name.human.capitalize
- if can?(current_user, :admin_label, label)
- if @project
- 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') }