From 96394ffb854ec6b8f17aa1ef105eb9ff92e5e676 Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas <11616378+mistermantas@users.noreply.github.com> Date: Sun, 15 Dec 2019 14:24:04 +0200 Subject: add dark mode and incident history view options --- static/admin/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'static') 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' -- cgit v1.2.3-70-g09d2