You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.9 KiB

  1. extends ./_layout.pug
  2. block adminContent
  3. .hero
  4. h1.title#title= t('nav.syssettings')
  5. h2.subtitle= t('admin:settings.subtitle')
  6. admin-settings(inline-template)
  7. .form-sections
  8. section
  9. img(src='/images/logo.png', style={width:'200px', float:'right'})
  10. label.label= t('admin:settings.systemversion')
  11. .section-block
  12. p #{t('admin:settings.currentversion')}: #[strong= sysversion.current]
  13. if sysversion.latest
  14. p #{t('admin:settings.latestversion')}: #[strong= sysversion.latest] #[em (Published #{moment(sysversion.latestPublishedAt).fromNow()})]
  15. p
  16. if sysversion.current !== sysversion.latest
  17. button.button.is-deep-orange(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "upgrade"})')= t('admin:settings.upgrade')
  18. else
  19. button.button.is-disabled= t('admin:settings.upgrade')
  20. button.button.is-deep-orange.is-outlined(@click='$store.dispatch("modalUpgradeSystem/open", { mode: "reinstall"})')= t('admin:settings.reinstall')
  21. else
  22. p: em= t('admin:settings.versioncheckfailed')
  23. section
  24. label.label= t('admin:settings.administrativetools')
  25. .section-block
  26. h6 #{t('admin:settings.flushcache')}:
  27. p.is-small= t('admin:settings.flushcachetext')
  28. p: button.button.is-teal.is-outlined(v-on:click='flushcache')= t('admin:settings.flushcachebtn')
  29. h6 #{t('admin:settings.resetaccounts')}:
  30. p.is-small= t('admin:settings.resetaccountstext')
  31. p: button.button.is-teal.is-outlined(v-on:click='resetaccounts')= t('admin:settings.resetaccountsbtn')
  32. h6 #{t('admin:settings.flushsessions')}:
  33. p.is-small= t('admin:settings.flushsessionstext')
  34. p: button.button.is-teal.is-outlined(v-on:click='flushsessions')= t('admin:settings.flushsessionsbtn')
  35. modal-upgrade-system