diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-09-20 19:54:29 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:24 +0300 |
commit | 2910896b53f107558904e228340009bb9fccca4e (patch) | |
tree | 7327d33719f2cf21fa88627fcbcbc507c34ea5cb /app/views/shared/_label_row.html.haml | |
parent | 1c73d302e2ce5a27aba7171af741b3590d48aba9 (diff) |
Remove duplication between global and the regular label partials
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 751b2d1c158..8a1ebdd7fb6 100644 --- a/app/views/shared/_label_row.html.haml +++ b/app/views/shared/_label_row.html.haml @@ -10,7 +10,8 @@ = icon('star') %span.label-name = link_to_label(label, tooltip: false) - = label_type_icon(label, class: "#{'hidden' if label.priority.blank?}" ) + - if can?(current_user, :admin_label, @project) + = label_type_icon(label, hidden: label.priority.blank?) - if label.description %span.label-description = markdown_field(label, :description) |