creddit/app/views/comments/_comment.html.slim

16 lines
703 B
Text
Raw Normal View History

2015-07-16 11:57:27 -04:00
.comment
2015-08-06 15:10:31 -04:00
p.details
== link_to comment.user_username, comment.user
= " X points #{distance_of_time_in_words comment.created_at, Time.now} ago"
2015-07-16 11:57:27 -04:00
p.content= comment.content
ul.links.list-inline
li= link_to 'permalink', subcreddit_post_comment_path(subcreddit, post, comment)
li= link_to 'save', ''
- if comment.parent
li= link_to 'parent', subcreddit_post_comment_path(subcreddit, post, comment.parent)
li= link_to 'edit', edit_subcreddit_post_comment_path(subcreddit, post, comment)
li= link_to 'delete', subcreddit_post_comment_path(subcreddit, post, comment), method: :delete
li= link_to 'spam', ''
li= link_to 'remove', ''
li= link_to 'give gold', ''