allow the user to see who has liked a specific comment.

This commit is contained in:
Dan Hansen 2011-08-30 21:13:12 -05:00
parent dc947e449b
commit f788de17fd
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
- if likes_count > 0
= image_tag('icons/heart.svg')
- if target_type == "Comment"
= t('likes.likes.people_like_this_comment', :count => likes_count)
= link_to t('likes.likes.people_like_this_comment', :count => likes_count), comment_likes_path(target_id), :class => "expand_likes"
- else
= link_to t('likes.likes.people_like_this', :count => likes_count), post_likes_path(target_id), :class => "expand_likes"
%span.hidden.likes_list

View file

@ -47,7 +47,7 @@ var ContentUpdater = {
},
addLikesToPost: function(postGUID, html) {
var likesContainer = $(".likes.on_post .likes_container", "#" + postGUID)
var likesContainer = $(".likes_container:first", "#" + postGUID)
.fadeOut("fast")
.html(html);