settings.pug 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. extends ./_layout.pug
  2. block adminContent
  3. #page-type-admin-settings
  4. .hero
  5. h1.title#title System Settings
  6. h2.subtitle Manage site configuration
  7. .form-sections
  8. section
  9. img(src='/images/logo.png', style={width:'200px', float:'right'})
  10. label.label System Version
  11. .section-block
  12. p Current Version: #[strong= sysversion.current]
  13. if sysversion.latest
  14. p Latest Version: #[strong= sysversion.latest] #[em (Published #{userMoment(sysversion.latestPublishedAt).fromNow()})]
  15. p
  16. if sysversion.current !== sysversion.latest
  17. button.button.is-deep-orange(v-on:click='upgrade') Upgrade
  18. else
  19. button.button.is-disabled Upgrade
  20. button.button.is-deep-orange.is-outlined(v-on:click='reinstall') Re-install current version
  21. else
  22. p: em Unable to query latest version. Try again later.
  23. section
  24. label.label Administrative Tools
  25. .section-block
  26. h6 Flush cache and rebuild indexes:
  27. p.is-small If content or search results seems out-of-date or do not include latest content, flushing the cache can help resolve these issues.
  28. p: button.button.is-teal.is-outlined(v-on:click='flushcache') Flush and Rebuild
  29. h6 Reset the root administrator and guest accounts to defaults:
  30. p.is-small
  31. | The root administrator account will be reset to the email address in the configuration file and the password will be reinitialized to #[strong admin123].
  32. br
  33. | The guest account will be recreated with its access rights set to defaults.
  34. p: button.button.is-teal.is-outlined(v-on:click='resetaccounts') Reset System Accounts
  35. h6 Flush all active user sessions:
  36. p.is-small All users will be logged out and forced to login again. Your current session will also be affected!
  37. p: button.button.is-teal.is-outlined(v-on:click='flushsessions') Flush Sessions
  38. include ../../modals/admin-upgrade.pug