2017-06-24 20:26:33 +00:00
|
|
|
extends ./_layout.pug
|
|
|
|
|
|
|
|
block adminContent
|
|
|
|
.hero
|
|
|
|
h1.title#title= t('nav.sysinfo')
|
|
|
|
h2.subtitle= t('admin:system.subtitle')
|
2017-06-26 15:03:16 +00:00
|
|
|
i.pageicon.nc-icon-outline.objects_planet
|
2017-06-24 20:26:33 +00:00
|
|
|
admin-settings(inline-template)
|
|
|
|
.form-sections
|
|
|
|
section
|
|
|
|
img(src='/images/logo.png', style={width:'200px', float:'right'})
|
2017-07-02 18:03:49 +00:00
|
|
|
label.label= t('admin:system.systemversion')
|
2017-06-24 20:26:33 +00:00
|
|
|
.section-block
|
2017-07-02 18:03:49 +00:00
|
|
|
p #{t('admin:system.currentversion')}: #[strong= sysversion.current]
|
2017-06-24 20:26:33 +00:00
|
|
|
if sysversion.latest
|
2017-07-02 18:03:49 +00:00
|
|
|
p #{t('admin:system.latestversion')}: #[strong= sysversion.latest] #[em (Published #{moment(sysversion.latestPublishedAt).fromNow()})]
|
2017-06-24 20:26:33 +00:00
|
|
|
p
|
|
|
|
if sysversion.current !== sysversion.latest
|
2017-07-02 18:03:49 +00:00
|
|
|
button.button.is-deep-orange(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "upgrade"})')= t('admin:system.upgrade')
|
2017-06-24 20:26:33 +00:00
|
|
|
else
|
2017-07-02 18:03:49 +00:00
|
|
|
button.button.is-disabled= t('admin:system.upgrade')
|
|
|
|
button.button.is-deep-orange.is-outlined(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "reinstall"})')= t('admin:system.reinstall')
|
2017-06-24 20:26:33 +00:00
|
|
|
else
|
2017-07-02 18:03:49 +00:00
|
|
|
p: em= t('admin:system.versioncheckfailed')
|
2017-06-24 20:26:33 +00:00
|
|
|
section
|
2017-07-02 18:03:49 +00:00
|
|
|
label.label= t('admin:system.hostinfo')
|
2017-06-24 20:26:33 +00:00
|
|
|
.section-block
|
2017-07-02 18:03:49 +00:00
|
|
|
p #{t('admin:system.os')}: #[strong= hostInfo.os]
|
|
|
|
p #{t('admin:system.nodeversion')}: #[strong= hostInfo.nodeversion]
|
|
|
|
p #{t('admin:system.hostname')}: #[strong= hostInfo.hostname]
|
|
|
|
p #{t('admin:system.cores')}: #[strong= hostInfo.cpus.length]
|
|
|
|
p #{t('admin:system.totalmem')}: #[strong= hostInfo.totalmem]
|
|
|
|
p #{t('admin:system.cwd')}: #[strong= hostInfo.cwd]
|
|
|
|
section
|
|
|
|
label.label= t('admin:system.administrativetools')
|
|
|
|
.section-block
|
|
|
|
h6 #{t('admin:system.flushcache')}:
|
|
|
|
p.is-small= t('admin:system.flushcachetext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='flushcache')= t('admin:system.flushcachebtn')
|
|
|
|
h6 #{t('admin:system.resetaccounts')}:
|
|
|
|
p.is-small= t('admin:system.resetaccountstext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='resetaccounts')= t('admin:system.resetaccountsbtn')
|
|
|
|
h6 #{t('admin:system.flushsessions')}:
|
|
|
|
p.is-small= t('admin:system.flushsessionstext')
|
|
|
|
p: button.button.is-teal.is-outlined(v-on:click='flushsessions')= t('admin:system.flushsessionsbtn')
|
2017-06-24 20:26:33 +00:00
|
|
|
|
|
|
|
modal-upgrade-system
|