summaryrefslogtreecommitdiff
path: root/app/views/votes
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-20 12:45:45 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-20 12:50:45 -0700
commit085e5084a8bd5034b94bc7f4e0dc8302cd71c323 (patch)
tree4e0fe923b6afff3f466bc8a3cbd436e13bc7bc01 /app/views/votes
parent1f711fd93d9e8f9955d59946469df2b6c7aa9c42 (diff)
downloadgitlab-ce-085e5084a8bd5034b94bc7f4e0dc8302cd71c323.tar.gz
Make issue and merge request sidebar more compactupvotes-refactoring
* move votes block to participants * make smaller font in sidebar
Diffstat (limited to 'app/views/votes')
-rw-r--r--app/views/votes/_votes_block.html.haml14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/views/votes/_votes_block.html.haml b/app/views/votes/_votes_block.html.haml
index 788d9065a7b..36ea6742064 100644
--- a/app/views/votes/_votes_block.html.haml
+++ b/app/views/votes/_votes_block.html.haml
@@ -1,6 +1,10 @@
.votes.votes-block
- .progress
- .progress-bar.progress-bar-success{style: "width: #{votable.upvotes_in_percent}%;"}
- .progress-bar.progress-bar-danger{style: "width: #{votable.downvotes_in_percent}%;"}
- .upvotes= "#{votable.upvotes} up"
- .downvotes= "#{votable.downvotes} down"
+ .btn-group
+ - unless votable.upvotes.zero?
+ .btn.btn-sm.disabled.cgreen
+ %i.fa.fa-thumbs-up
+ = votable.upvotes
+ - unless votable.downvotes.zero?
+ .btn.btn-sm.disabled.cred
+ %i.fa.fa-thumbs-down
+ = votable.downvotes