mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
9 lines
409 B
Text
9 lines
409 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, can?(@conn, :show, comment.image) do
|
|
= render PhilomenaWeb.CommentView, "_comment_with_image.html", comment: comment, body: body, conn: @conn
|