aboutsummaryrefslogtreecommitdiff
path: root/static/admin
diff options
context:
space:
mode:
authorMantas Vilčinskas <11616378+mistermantas@users.noreply.github.com>2019-12-15 14:24:04 +0200
committerGitHub <noreply@github.com>2019-12-15 14:24:04 +0200
commit96394ffb854ec6b8f17aa1ef105eb9ff92e5e676 (patch)
tree188fc15b357d2b4f24d35398c93674009278c5fb /static/admin
parentaa3f67891369b83b0670095aac641f3f4008a48b (diff)
add dark mode and incident history view options
Diffstat (limited to 'static/admin')
-rw-r--r--static/admin/config.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 5bee7cb..14e45d1 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -147,6 +147,12 @@ collections:
widget: 'boolean'
required: false
default: true
+ - label: 'Disable dark mode'
+ hint: 'If your OS and browser supports prefers-color-scheme and the user opted into a dark mode, the status page will be darker. Some color choices may be overriden.'
+ name: 'disableDarkMode'
+ widget: 'boolean'
+ required: false
+ default: false
- label: 'Logo image'
hint: 'Upload your logo here. If the logo option is switched off, this will not show.'
name: 'logo'
@@ -167,11 +173,21 @@ collections:
# Incidents per page
- label: 'Incident posts shown in one page'
name: 'incidentPostsPerPage'
+ hint: ''
widget: 'number'
valueType: 'int'
min: 1
max: 100
default: 10
+ # Incident history view
+ - label: "Yearly or monthly incident history / archival view"
+ hint: 'If you enable any of the sorting options, pagination will be disabled.'
+ name: "incidentHistoryFormat"
+ widget: "select"
+ options:
+ - { label: "Disabled", value: "none" }
+ - { label: "Yearly", value: "yearly" }
+ - { label: "Monthly", value: "monthly" }
# Brand color
- label: 'Header: always keep brand color the same'
name: 'alwaysKeepBrandColor'