diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-11-19 00:59:07 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-11-19 01:26:00 +0200 |
commit | fdd5a8f2e16cc210f24d93334877f1ca7ce92ce9 (patch) | |
tree | 3be1c94b61359a8b692f0a9fd128dc68deabb1a4 /app/views/votes | |
parent | 92943580cb1647930dbfdd8d2957213326c134d9 (diff) | |
download | gitlab-ce-fdd5a8f2e16cc210f24d93334877f1ca7ce92ce9.tar.gz |
addressing comments
Diffstat (limited to 'app/views/votes')
-rw-r--r-- | app/views/votes/_votes_block.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/votes/_votes_block.html.haml b/app/views/votes/_votes_block.html.haml index fff74745919..3eadf209a59 100644 --- a/app/views/votes/_votes_block.html.haml +++ b/app/views/votes/_votes_block.html.haml @@ -1,10 +1,10 @@ .awards.votes-block - - votable.notes.awards.grouped_awards.each do | vote | - .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" + - votable.notes.awards.grouped_awards.each do | note | + .award{class: (note_active_class(note.last, current_user)), title: emoji_author_list(note.last, current_user)} + .icon{"data-emoji" => "#{note.first}"} + = image_tag url_to_emoji(note.first), height: "20px", width: "20px" .counter - = vote.last.count + = note.last.count .dropdown.awards-controls %a.add-award{"data-toggle" => "dropdown", "data-target" => "#", "href" => "#"} |