You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB

extends ../layouts/main
2 years ago
block content
include ../components/pagination-bar
include ../post/components/draft-list
include ../post/components/list
include ../post/components/summary
include ../comment/components/comment
section.uk-section.uk-section-default.uk-section-xsmall
.uk-container.uk-container-expand
div(uk-grid).uk-flex-middle
.uk-width-expand
h1.uk-margin-remove Author Dashboard
.uk-width-auto
a(href= "/post/compose").uk-button.uk-button-primary.uk-border-rounded
span
i.fas.fa-plus
span.uk-margin-small-left.uk-text-bold Create Post
2 years ago
div(uk-grid)
if authorComments.comments.length > 0
div(class="uk-width-1-1 uk-width-2-3@m")
+renderSectionTitle('Recent Comments', { url: '/author/comments', title: 'See All', label: 'SEE ALL' })
.content-block
.uk-margin
ul#post-comment-list.uk-list.uk-list-divider.uk-list-large.uk-margin
each comment in authorComments.comments
li
.uk-margin
a(href=`/post/${comment.resource.slug}`).uk-display-block.uk-link-reset
+renderPostSummary(comment.resource)
+renderComment(comment, { })
+renderPaginationBar('/author', published.totalPostCount)
else
div(class="uk-width-1-1 uk-width-2-3@m")
+renderSectionTitle('Comments')
div There are no comments.
2 years ago
div(class="uk-width-1-1 uk-width-1-3@m")
.uk-margin
+renderSectionTitle('Drafts')
+renderPostDraftList(drafts.posts)
.uk-margin
+renderSectionTitle('Recent Posts', { title: 'View All', label: 'View All', url: '/author/post' })
+renderPostList(published.posts)