Files
growstuff/app/views/comments/_single.html.haml
2013-03-21 00:37:46 +11:00

25 lines
774 B
Plaintext

.well
.comment
.row
.span1
= render :partial => "members/avatar", :locals => { :member => comment.author }
.span7
.comment-meta
Posted by
= link_to comment.author.login_name, member_path(comment.author)
at
= comment.created_at
.comment-body
:markdown
#{ strip_tags comment.body }
- if can? :edit, comment or can? :destroy, comment
.comment-actions
- if can? :edit, comment
= link_to 'Edit', edit_comment_path(comment), :class => 'btn btn-mini'
- if can? :destroy, comment
= link_to 'Delete', comment, method: :delete, |
data: { confirm: 'Are you sure?' }, :class => 'btn btn-mini'