wikijs-fork/server/views/pages/admin/settings.pug

38 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-11-21 01:09:50 +00:00
extends ./_layout.pug
block adminContent
2017-05-21 03:21:16 +00:00
.hero
h1.title#title= t('nav.syssettings')
h2.subtitle= t('admin:settings.subtitle')
admin-settings(inline-template)
.form-sections
section
img(src='/images/logo.png', style={width:'200px', float:'right'})
2017-05-04 02:10:12 +00:00
label.label= t('admin:settings.systemversion')
.section-block
2017-05-04 02:10:12 +00:00
p #{t('admin:settings.currentversion')}: #[strong= sysversion.current]
if sysversion.latest
p #{t('admin:settings.latestversion')}: #[strong= sysversion.latest] #[em (Published #{moment(sysversion.latestPublishedAt).fromNow()})]
p
if sysversion.current !== sysversion.latest
button.button.is-deep-orange(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "upgrade"})')= t('admin:settings.upgrade')
else
2017-05-04 02:10:12 +00:00
button.button.is-disabled= t('admin:settings.upgrade')
button.button.is-deep-orange.is-outlined(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "reinstall"})')= t('admin:settings.reinstall')
else
2017-05-04 02:10:12 +00:00
p: em= t('admin:settings.versioncheckfailed')
section
2017-05-04 02:10:12 +00:00
label.label= t('admin:settings.administrativetools')
.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')
modal-upgrade-system