philomena/lib/philomena_web/templates/comment/index.html.slime

14 lines
441 B
Text
Raw Normal View History

2019-11-12 04:10:41 +01:00
elixir:
route = fn p -> Routes.comment_path(@conn, :index, p) end
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @comments, route: route
.block
.block__header
= pagination
= for {comment, body} <- @comments do
2019-11-17 21:37:01 +01:00
= render PhilomenaWeb.CommentView, "_comment_with_image.html", image: comment.image, comment: comment, body: body, conn: @conn
2019-11-12 04:10:41 +01:00
.block
.block__header.block__header--light
= pagination