philomena/lib/philomena_web/templates/profile/_recent_comments.html.slime
2024-06-06 22:28:35 +02:00

9 lines
371 B
Text

= if Enum.any?(@comments) do
.block
.block__header
span Recent Comments
= link "View all", to: ~p"/comments?#{[cq: "user_id:#{@user.id}"]}"
.block__content
= for {body, comment} <- @comments, can?(@conn, :show, comment.image) do
= render PhilomenaWeb.CommentView, "_comment_with_image.html", comment: comment, body: body, conn: @conn