Update display of merge requests and issues to also show downvotes

This commit is contained in:
Riyad Preukschas 2012-09-08 03:30:41 +02:00
parent 7b0c7ae52c
commit 1271b4ce66
5 changed files with 27 additions and 9 deletions

View file

@ -25,3 +25,5 @@
ago
- if merge_request.upvotes > 0
%span.badge.badge-success= "+#{merge_request.upvotes}"
- if merge_request.downvotes > 0
%span.badge.badge-important= "-#{merge_request.downvotes}"

View file

@ -24,8 +24,10 @@
Edit
%br
- if @merge_request.upvotes > 0
.upvotes#upvotes= "+#{pluralize @merge_request.upvotes, 'upvote'}"
.votes#votes
Votes:
.upvotes#upvotes= "#{@merge_request.upvotes} up"
.downvotes#downvotes= "#{@merge_request.downvotes} down"
.back_link