philomena/lib/philomena_web/templates/profile/_recent_comments.html.slime

10 lines
392 B
Text
Raw Normal View History

2019-12-05 05:53:56 +01:00
= if Enum.any?(@comments) do
.block
.block__header
span.block__header__title Recent Comments
= link "View all", to: ~p"/comments?#{[cq: "user_id:#{@user.id}"]}"
2019-12-05 05:53:56 +01:00
.block__content
2019-12-19 07:20:31 +01:00
= for {body, comment} <- @comments, can?(@conn, :show, comment.image) do
2019-12-05 06:00:41 +01:00
= render PhilomenaWeb.CommentView, "_comment_with_image.html", comment: comment, body: body, conn: @conn