mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-01 07:18:00 +01:00
14 lines
408 B
Text
14 lines
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
|