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