Skip to content
Snippets Groups Projects
Commit 1271b4ce authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Update display of merge requests and issues to also show downvotes

parent 7b0c7ae5
No related branches found
No related tags found
1 merge request!1409Update votes for issues and merge requests
Loading
Loading
@@ -406,13 +406,23 @@ p.time {
}
}
 
.upvotes {
.votes {
font-size: 14px;
font-weight: bold;
color: #468847;
text-align: right;
padding: 4px;
margin: 2px;
padding: 4px 0;
margin: 2px 0;
.upvotes {
display: inline-block;
color: #468847;
padding: 0 4px;
margin: 0 2px;
}
.downvotes {
display: inline-block;
color: #B94A48;
padding: 0 4px;
margin: 0 2px;
}
}
 
/* Fix for readme code (stopped it from being yellow) */
Loading
Loading
Loading
Loading
@@ -36,3 +36,5 @@
 
- if issue.upvotes > 0
%span.badge.badge-success= "+#{issue.upvotes}"
- if issue.downvotes > 0
%span.badge.badge-important= "-#{issue.downvotes}"
Loading
Loading
@@ -17,8 +17,10 @@
Edit
 
%br
- if @issue.upvotes > 0
.upvotes#upvotes= "+#{pluralize @issue.upvotes, 'upvote'}"
.votes#votes
Votes:
.upvotes#upvotes= "#{@issue.upvotes} up"
.downvotes#downvotes= "#{@issue.downvotes} down"
 
.back_link
= link_to project_issues_path(@project) do
Loading
Loading
Loading
Loading
@@ -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}"
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment