summaryrefslogtreecommitdiff
path: root/app/views/votes
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-11-18 15:43:53 +0200
committerValery Sizov <vsv2711@gmail.com>2015-11-19 01:25:59 +0200
commitf021bc5c6aa79147940ee31e800f519962f4d806 (patch)
tree1b2424e84748df8fff573b99280f28f98eca5176 /app/views/votes
parent36d0442e837cd520dec780590040c83108bc14e6 (diff)
downloadgitlab-ce-f021bc5c6aa79147940ee31e800f519962f4d806.tar.gz
add stats on hover
Diffstat (limited to 'app/views/votes')
-rw-r--r--app/views/votes/_votes_block.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/votes/_votes_block.html.haml b/app/views/votes/_votes_block.html.haml
index 118a095181f..a2298f1813a 100644
--- a/app/views/votes/_votes_block.html.haml
+++ b/app/views/votes/_votes_block.html.haml
@@ -1,6 +1,6 @@
.awards.votes-block
- votable.notes.awards.grouped_awards.each do | vote |
- .award{class: ("active" if vote.last.pluck(:author_id).include?(current_user.id))}
+ .award{class: ("active" if vote.last.pluck(:author_id).include?(current_user.id)), title: emoji_author_list(vote.last, current_user)}
.icon{"data-emoji" => "#{vote.first}"}
= image_tag url_to_emoji(vote.first), height: "20px", width: "20px"
.counter
@@ -28,6 +28,8 @@
emoji = $(this).find(".icon").data("emoji")
awards_handler.addAward(emoji)
+ $(".award").tooltip()
+
\ No newline at end of file