From aa3f67891369b83b0670095aac641f3f4008a48b Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas <11616378+mistermantas@users.noreply.github.com> Date: Thu, 14 Nov 2019 22:24:50 +0200 Subject: Add sponsor btn --- .github/FUNDING.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..118a4f5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: mistermantas +custom: ["https://www.paypal.me/mistermantas"] -- cgit v1.2.3-70-g09d2 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(+) 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