mistake, dont show edit link for not global manage view ref #298

merge-requests/208/head
Thomas Lynch 4 years ago
parent cf43f650d6
commit 20acda82d7
  1. 3
      views/mixins/newspost.pug

@ -7,8 +7,9 @@ mixin newspost(post, globalmanage=false)
if globalmanage === true
input.left.post-check(type='checkbox', name='checkednews' value=post._id)
a.left(href=`#${post._id}`) #{post.title}
if globalmanage === true
a.right.ml-5(href=`/editnews/${post._id}.html`) [Edit]
- const newsDate = new Date(post.date);
a.right.ml-5(href=`/editnews/${post._id}.html`) [Edit]
time.right.reltime(datetime=newsDate.toISOString()) #{newsDate.toLocaleString(undefined, {hourCycle:'h23'})}
tr
td

Loading…
Cancel
Save