2019-11-12 03:38:51 +01:00
|
|
|
elixir:
|
|
|
|
route = fn p -> Routes.image_comment_path(@conn, :index, @image, p) end
|
|
|
|
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @comments, route: route
|
|
|
|
|
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
=<> pagination
|
|
|
|
span.block__header__title
|
|
|
|
=<> @image.comments_count
|
|
|
|
=> pluralize("comment", "comments", @image.comments_count)
|
|
|
|
' posted
|
|
|
|
button.button#js-refresh-comments title="Refresh" data-disable-with="..."
|
2019-12-06 22:38:36 +01:00
|
|
|
i.fa.fa-sync
|
2019-11-12 03:38:51 +01:00
|
|
|
span.hide-mobile<> Refresh
|
|
|
|
|
2019-12-20 23:35:46 +01:00
|
|
|
= for {comment, body} <- @comments, not comment.destroyed_content or (can?(@conn, :show, comment) and @conn.cookies["hide_staff_tools"] != "true") do
|
2019-11-12 03:38:51 +01:00
|
|
|
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
|
|
|
|
|
|
|
|
.block
|
|
|
|
.block__header.block__header--light
|
2019-12-06 22:38:36 +01:00
|
|
|
= pagination
|