diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-24 15:29:00 +0300 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-24 15:29:00 +0300 |
commit | d400c94e601df96b0a58a7e1098ee04b3e7459f5 (patch) | |
tree | 6375697783606f5337fd6826ebcd1c8006575823 /app/views/shared/_label_row.html.haml | |
parent | aba153a46d99977b6d05b0d6fb93a796cf551ae3 (diff) |
Fix accuracy of 'prioritized label' badge, when given different contexts
Diffstat (limited to 'app/views/shared/_label_row.html.haml')
-rw-r--r-- | app/views/shared/_label_row.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/_label_row.html.haml b/app/views/shared/_label_row.html.haml index 578fe6bcd8a..42d9a97d3a1 100644 --- a/app/views/shared/_label_row.html.haml +++ b/app/views/shared/_label_row.html.haml @@ -1,4 +1,5 @@ - subject = local_assigns[:subject] +- force_priority = local_assigns.fetch(:force_priority, false) - show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project) - show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project) @@ -17,6 +18,6 @@ · %li.label-link-item.inline = link_to_label(label, subject: subject, type: :merge_request) { _('Merge requests') } - - if label.priority? + - if force_priority %li.label-link-item.js-priority-badge.inline.prepend-left-10 .label-badge.label-badge-blue= _('Prioritized label')
\ No newline at end of file |