Browse Source

a couple touch-ups to post view

pull/1/head
Rob Colbert 3 years ago
parent
commit
0ede36fbb2
  1. 6
      app/views/post/view.pug

6
app/views/post/view.pug

@ -6,15 +6,13 @@ block content
article(dtp-post-id= post._id) article(dtp-post-id= post._id)
.uk-margin .uk-margin
div(uk-grid) h1.article-title= post.title
.uk-width-expand
h1.article-title= post.title
.uk-text-lead= post.summary .uk-text-lead= post.summary
.uk-margin .uk-margin
.uk-article-meta .uk-article-meta
div(uk-grid).uk-grid-small.uk-flex-top div(uk-grid).uk-grid-small.uk-flex-top
.uk-width-expand .uk-width-expand
div published: #{moment(post.created).format('MMM DD, YYYY - hh:mm a').toUpperCase()} div #{moment(post.created).format('MMM DD, YYYY, hh:mm a')}, by #[a(href=`/user/${post.author._id}`)= post.author.displayName || post.author.username]
if user && user.flags.isAdmin if user && user.flags.isAdmin
.uk-width-auto .uk-width-auto
a(href=`/admin/post/${post._id}`) a(href=`/admin/post/${post._id}`)

Loading…
Cancel
Save