diff options
author | Phil Hughes <me@iamphill.com> | 2016-02-22 10:21:02 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-02-22 10:21:02 +0000 |
commit | d8069bd85863ab8c47d2bb2370221b17fb686b93 (patch) | |
tree | ca7809019710b45fa4ef3b5d22d047d2f6eca7ab /app/views/projects/issues/_issue.html.haml | |
parent | 04d1b412587028260ac219a32bdf3b03ac022308 (diff) | |
download | gitlab-ce-d8069bd85863ab8c47d2bb2370221b17fb686b93.tar.gz |
Only show up or down votes icon on issue list if there are any
Closes #13649
Diffstat (limited to 'app/views/projects/issues/_issue.html.haml')
-rw-r--r-- | app/views/projects/issues/_issue.html.haml | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/views/projects/issues/_issue.html.haml b/app/views/projects/issues/_issue.html.haml index 5b0edcfa978..654d8cd5ed0 100644 --- a/app/views/projects/issues/_issue.html.haml +++ b/app/views/projects/issues/_issue.html.haml @@ -16,23 +16,15 @@ = link_to_member(@project, issue.assignee, name: false, title: "Assigned to :name") - upvotes, downvotes = issue.upvotes, issue.downvotes - - if upvotes > 0 || downvotes > 0 + - if upvotes > 0 %li = icon('thumbs-up') = upvotes - - else - %li{ class: 'issue-no-votes' } - = icon('thumbs-up') - = upvotes - - if upvotes > 0 || downvotes > 0 + - if downvotes > 0 %li = icon('thumbs-down') = downvotes - - else - %li{ class: 'issue-no-votes' } - = icon('thumbs-down') - = downvotes - note_count = issue.notes.user.count - if note_count > 0 |