mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-28 05:57:58 +01:00
19 lines
753 B
Text
19 lines
753 B
Text
|
- comment_link = Routes.image_path(@conn, :show, @comment.image) <> "#comment_#{@comment.id}"
|
||
|
|
||
|
.flex__spacer.hidden--desktop
|
||
|
a.communication__interaction.hidden--desktop title="Link to comment" href=comment_link
|
||
|
i.fa.fa-link
|
||
|
= if not is_nil(@comment.edited_at) and can?(@conn, :show, @comment) do
|
||
|
a.communication__options__edit-time href=Routes.image_comment_history_path(@conn, :index, @comment.image, @comment)
|
||
|
span.hidden--mobile> - edited
|
||
|
span.hidden--desktop> Edited
|
||
|
=> pretty_time(@comment.edited_at)
|
||
|
|
||
|
= if @comment.edit_reason not in [nil, ""] do
|
||
|
| (
|
||
|
= @comment.edit_reason
|
||
|
| )
|
||
|
.flex__spacer.hidden--mobile
|
||
|
a.communication__interaction.hidden--mobile title="Link to comment" href=comment_link
|
||
|
i.fa.fa-link
|