extract updateNotice to pug file

This commit is contained in:
Wingy 2021-09-14 22:17:05 -04:00
parent ed2691c8d8
commit 404bf26376
2 changed files with 15 additions and 14 deletions

View file

@ -0,0 +1,14 @@
if req.user && req.user.admin && _CC.updateNotice
.columns
.column
.column.is-narrow
.box
span.has-text-danger.is-size-4.has-text-weight-bold Christmas Community is out of date. There may be new features or bug fixes. Consider updating! :)
br
span (you can turn this off with <code>UPDATE_CHECK=false</code>)
br
br
span Current: #{_CC.updateNotice.current}
br
span Latest: #{_CC.updateNotice.latest}
span.has-text-info(style='float: right;') This message is only visible to admins

View file

@ -41,17 +41,4 @@ html(lang='en')
h1 #{config.siteTitle}
include includes/messages.pug
block content
if req.user && req.user.admin && _CC.updateNotice
.columns
.column
.column.is-narrow
.box
span.has-text-danger.is-size-4.has-text-weight-bold Christmas Community is out of date. There may be new features or bug fixes. Consider updating! :)
br
span (you can turn this off with <code>UPDATE_CHECK=false</code>)
br
br
span Current: #{_CC.updateNotice.current}
br
span Latest: #{_CC.updateNotice.latest}
span.has-text-info(style='float: right;') This message is only visible to admins
include includes/updateNotice.pug