parent
3badc7a615
commit
28b5256c3a
@ -1,19 +1,16 @@
|
|||||||
extends ../../layouts/main
|
extends ../../layouts/main-sidebar
|
||||||
block content
|
block content
|
||||||
|
|
||||||
include ../../components/pagination-bar
|
include ../../components/pagination-bar
|
||||||
include components/list
|
include components/list
|
||||||
|
|
||||||
section.uk-section.uk-section-default.uk-section-xsmall
|
div(uk-grid).uk-flex-expand
|
||||||
.uk-container.uk-container-expand
|
.uk-width-expand
|
||||||
div(uk-grid).uk-flex-middle
|
h3.uk-margin-remove= `Posts by ${author.username}`
|
||||||
.uk-width-expand
|
if Array.isArray(posts) && (posts.length > 0)
|
||||||
h1.uk-margin-remove= `Posts by ${author.username}`
|
ul.uk-list.uk-list-divider
|
||||||
if Array.isArray(posts) && (posts.length > 0)
|
each post in posts
|
||||||
ul.uk-list.uk-list-divider
|
li
|
||||||
each post in posts
|
+renderPostSummaryFull(post)
|
||||||
li
|
.uk-card-footer
|
||||||
+renderPostSummaryFull(post)
|
+renderPaginationBar(`/post/author/${author.username}`, posts.length )
|
||||||
|
|
||||||
.uk-card-footer
|
|
||||||
+renderPaginationBar(`/post/author/${author.username}`, posts.length )
|
|
Loading…
Reference in new issue