extract updateNotice to pug file
This commit is contained in:
parent
ed2691c8d8
commit
404bf26376
2 changed files with 15 additions and 14 deletions
14
views/includes/updateNotice.pug
Normal file
14
views/includes/updateNotice.pug
Normal 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
|
|
@ -41,17 +41,4 @@ html(lang='en')
|
||||||
h1 #{config.siteTitle}
|
h1 #{config.siteTitle}
|
||||||
include includes/messages.pug
|
include includes/messages.pug
|
||||||
block content
|
block content
|
||||||
if req.user && req.user.admin && _CC.updateNotice
|
include includes/updateNotice.pug
|
||||||
.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
|
|
Loading…
Reference in a new issue