philomena/lib/philomena_web/templates/image/comment/index.html.slime

23 lines
794 B
Text
Raw Normal View History

2019-11-12 03:38:51 +01:00
elixir:
2024-06-06 22:28:35 +02:00
route = fn p -> ~p"/images/#{@image}/comments?#{p}" end
2019-11-12 03:38:51 +01:00
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @comments, route: route
.block
2020-12-11 17:53:40 +01:00
.block__header.page__header
.page__pagination = pagination
.page__info
2023-11-23 17:07:49 +01:00
span
2020-12-11 17:53:40 +01:00
=<> @image.comments_count
=> pluralize("comment", "comments", @image.comments_count)
' posted
button.button#js-refresh-comments title="Refresh" data-disable-with="..."
i.fa.fa-sync
2023-11-23 17:07:49 +01:00
span.hidden--mobile<> Refresh
2019-11-12 03:38:51 +01:00
2022-03-22 22:23:30 +01:00
= for {comment, body} <- @comments, can_view_communication?(@conn, comment) do
2019-11-12 03:38:51 +01:00
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
.block
2020-12-11 17:53:40 +01:00
.block__header.block__header--light.page__header
.page__pagination = pagination