mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-19 06:47:51 -05:00
25 lines
774 B
Plaintext
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'
|
|
|