mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
.card.comment
|
|
.card-body
|
|
.row
|
|
.col
|
|
= render "members/tiny", member: comment.author
|
|
- if can?(:edit, comment) || can?(:destroy, comment)
|
|
%hr/
|
|
= actions_menu('comment', id: comment.id, align: :start) do
|
|
- if can? :edit, comment
|
|
= menu_modal_link :edit, t('buttons.edit'), "#comment-#{comment.id}-edit-modal"
|
|
- if can? :destroy, comment
|
|
= menu_delete_button(comment)
|
|
- if can? :edit, comment
|
|
= render 'comments/edit_modal', comment:
|
|
.col-md-9.border-start
|
|
.comment-meta.text-muted
|
|
Posted by
|
|
- if comment.author.discarded?
|
|
Member Deleted
|
|
- else
|
|
= link_to comment.author.login_name, member_path(comment.author)
|
|
on
|
|
= comment.created_at
|
|
- if comment.updated_at > comment.created_at
|
|
and edited at
|
|
= comment.updated_at
|
|
|
|
.comment-body
|
|
:markdown
|
|
#{ strip_tags markdownify(comment.body) }
|
|
|