philomena/lib/philomena_web/templates/comment/index.html.slime
2019-11-11 22:10:41 -05:00

14 lines
No EOL
408 B
Text

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
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
.block
.block__header.block__header--light
= pagination