2016-11-21 01:09:50 +00:00
|
|
|
extends ./_layout.pug
|
|
|
|
|
|
|
|
block adminContent
|
2017-02-19 21:13:51 +00:00
|
|
|
#page-type-admin-settings
|
|
|
|
.hero
|
2017-05-04 02:10:12 +00:00
|
|
|
h1.title#title= t('nav.syssettings')
|
|
|
|
h2.subtitle= t('admin:settings.subtitle')
|
2017-02-19 21:13:51 +00:00
|
|
|
.form-sections
|
|
|
|
section
|
2017-04-30 20:37:10 +00:00
|
|
|
img(src='/images/logo.png', style={width:'200px', float:'right'})
|
2017-05-04 02:10:12 +00:00
|
|
|
label.label= t('admin:settings.systemversion')
|
2017-02-19 21:13:51 +00:00
|
|
|
.section-block
|
2017-05-04 02:10:12 +00:00
|
|
|
p #{t('admin:settings.currentversion')}: #[strong= sysversion.current]
|
2017-02-19 21:13:51 +00:00
|
|
|
if sysversion.latest
|
2017-05-14 15:24:05 +00:00
|
|
|
p #{t('admin:settings.latestversion')}: #[strong= sysversion.latest] #[em (Published #{moment(sysversion.latestPublishedAt).fromNow()})]
|
2017-02-19 21:13:51 +00:00
|
|
|
p
|
|
|
|
if sysversion.current !== sysversion.latest
|
2017-05-04 02:10:12 +00:00
|
|
|
button.button.is-deep-orange(v-on:click='upgrade')= t('admin:settings.upgrade')
|
2017-02-19 21:13:51 +00:00
|
|
|
else
|
2017-05-04 02:10:12 +00:00
|
|
|
button.button.is-disabled= t('admin:settings.upgrade')
|
|
|
|
button.button.is-deep-orange.is-outlined(v-on:click='reinstall')= t('admin:settings.reinstall')
|
2017-02-19 21:13:51 +00:00
|
|
|
else
|
2017-05-04 02:10:12 +00:00
|
|
|
p: em= t('admin:settings.versioncheckfailed')
|
2017-02-19 21:13:51 +00:00
|
|
|
section
|
2017-05-04 02:10:12 +00:00
|
|
|
label.label= t('admin:settings.administrativetools')
|
2017-02-19 21:13:51 +00:00
|
|
|
.section-block
|
2017-05-04 02:10:12 +00:00
|
|
|
h6 #{t('admin:settings.flushcache')}:
|
|
|
|
p.is-small= t('admin:settings.flushcachetext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='flushcache')= t('admin:settings.flushcachebtn')
|
|
|
|
h6 #{t('admin:settings.resetaccounts')}:
|
|
|
|
p.is-small= t('admin:settings.resetaccountstext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='resetaccounts')= t('admin:settings.resetaccountsbtn')
|
|
|
|
h6 #{t('admin:settings.flushsessions')}:
|
|
|
|
p.is-small= t('admin:settings.flushsessionstext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='flushsessions')= t('admin:settings.flushsessionsbtn')
|
2017-02-19 21:13:51 +00:00
|
|
|
|
|
|
|
include ../../modals/admin-upgrade.pug
|