summaryrefslogtreecommitdiff
path: root/app/views/shared/_label.html.haml
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-25 12:49:01 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-25 12:49:01 +0100
commitc792501440c7ecc2123d654747364447f74b7491 (patch)
tree5787a73b28c2d61b72e5c8ca8c8c7f952c939417 /app/views/shared/_label.html.haml
parente5ae43e23ffd8d75865a3572439afe40a0dd9444 (diff)
downloadgitlab-ce-c792501440c7ecc2123d654747364447f74b7491.tar.gz
Fix pri toggle conditional
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r--app/views/shared/_label.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index ec84c565aae..f325c45a53f 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -11,7 +11,7 @@
%li.inline
.label-badge.label-badge-gray= label.model_name.human.capitalize
- if can?(current_user, :admin_label, label)
- - if subject.is_a?(Project)
+ - if @project.present?
%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' }