philomena/lib/philomena_web/templates/profile/_recent_comments.html.slime
2019-12-05 00:00:41 -05:00

9 lines
374 B
Text

= if Enum.any?(@comments) do
.block
.block__header
span.block__header__title Recent Comments
= link "View all", to: Routes.comment_path(@conn, :index, cq: "user_id:#{@user.id}")
.block__content
= for {body, comment} <- @comments do
= render PhilomenaWeb.CommentView, "_comment_with_image.html", comment: comment, body: body, conn: @conn