Please see https://github.com/diaspora/diaspora/issues/5483#issuecomment-109277476 (+5 squashed commits) Squashed commits: [62f38a6] Wrap all handlers with document.ready() Also add the copyright at the top of the file. [e861587] Split up show_comments handling Currently there are two classes that have the class show_comments. I renamed one to "back_to_stream_element_top" as it is responsible for scrolling the user all the way up to the top when clicked. The other which toggles the reactions will remain as "show_comments". [a8dbc4e] Remove unused "cancel new comment" action [db575cc] Move comment related js to mobile_comments.js [de44f81] Move add comment container to new comment partial
14 lines
333 B
Text
14 lines
333 B
Text
.comment_container
|
|
.post_stats
|
|
- if @post.public?
|
|
%span.reshare_count
|
|
= @post.reshares.size
|
|
|
|
%span.comment_count
|
|
= @post.comments.size
|
|
|
|
%span.like_count
|
|
= @post.likes.size
|
|
|
|
%ul.comments
|
|
= render partial: "comments/comment", collection: @post.comments.for_a_stream, locals: {post: @post}
|