philomena/lib/philomena_web/templates/comment/_comment_link.html.slime

19 lines
719 B
Text
Raw Normal View History

2024-06-06 22:28:35 +02:00
- comment_link = ~p"/images/#{@comment.image}" <> "#comment_#{@comment.id}"
2024-05-31 20:07:00 +02:00
.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
2024-06-06 22:28:35 +02:00
a.communication__options__edit-time href=~p"/images/#{@comment.image}/comments/#{@comment}/history"
2024-05-31 20:07:00 +02:00
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