mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
18 lines
719 B
Text
18 lines
719 B
Text
- comment_link = ~p"/images/#{@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=~p"/images/#{@comment.image}/comments/#{@comment}/history"
|
|
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
|