Merge branch 'fix-zero-votes-showing-on-issue-list' into 'master'
Only show up or down votes icon on issue list if there are any Closes #13649 ![Screen_Shot_2016-02-22_at_10.20.27](/uploads/21477426856dab9731bb110032025867/Screen_Shot_2016-02-22_at_10.20.27.png) See merge request !2909
This commit is contained in:
commit
1d9863c141
|
@ -24,7 +24,7 @@
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.issue-no-comments, .issue-no-votes {
|
||||
.issue-no-comments {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue