mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-05 00:57:59 +01:00
21 lines
794 B
Text
21 lines
794 B
Text
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="..."
|
|
i.fa.fa-sync
|
|
span.hide-mobile<> Refresh
|
|
|
|
= for {comment, body} <- @comments, not comment.destroyed_content or (can?(@conn, :show, comment) and not hide_staff_tools?(@conn)) do
|
|
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
|
|
|
|
.block
|
|
.block__header.block__header--light
|
|
= pagination
|