Make postlinks able to support only having board (for create)

Update gloalmanagelogs to show - for null board
merge-requests/345/head
Thomas Lynch 2 weeks ago
parent efdd943f7b
commit 9ba3b022be
  1. 6
      views/mixins/postlink.pug
  2. 9
      views/pages/globalmanagelogs.pug

@ -1,2 +1,6 @@
mixin postlink(log, postLink, manageLink=false)
a.quote(href=`/${postLink.board || log.board}/${manageLink ? 'manage/' : ''}thread/${postLink.thread || postLink.postId}.html#${postLink.postId}`) >>#{postLink.postId}
if postLink.thread || postLink.postId
a.quote(href=`/${postLink.board || log.board}/${manageLink ? 'manage/' : ''}thread/${postLink.thread || postLink.postId}.html#${postLink.postId}`) >>#{postLink.postId}
else
a.quote(href=`/${postLink.board || log.board}/${manageLink ? 'manage/' : ''}index.html`) >>>/#{postLink.board}/

@ -42,9 +42,12 @@ block content
- const logDate = new Date(log.date);
td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(pageLanguage, {hourCycle:'h23'})}
td
a(href=`/${log.board}/index.html`) /#{log.board}/
|
a(href=`?uri=${log.board}`) [+]
if log.board
a(href=`/${log.board}/index.html`) /#{log.board}/
|
a(href=`?uri=${log.board}`) [+]
else
| -
td
if log.user !== __('Unregistered User')
a(href=`accounts.html?username=${log.user}`) #{log.user}

Loading…
Cancel
Save