From 26c79827eb505c5db033cc51f50bd8aaf82891e2 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Fri, 24 Mar 2023 08:05:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Etechnical=20documentation=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- technical-documentation.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/technical-documentation.md b/technical-documentation.md index 02b331b..660498c 100644 --- a/technical-documentation.md +++ b/technical-documentation.md @@ -32,4 +32,19 @@ There are certain dependencies for konova: All details regarding the API can be found [here](https://git.naturschutz.rlp.de/SGD-Nord/konova/wiki/api_de). - +## News and ServerMessages +News can be added to the landing page of every user by adding new entries for the model `ServerMessage` on the admin backend. +Each entries behaviour can be configured using the attributes: +* is_active + * Toggles the visibility of a message. If false, the message will not be displayed on any landing page. +* publish_on + * The message will appear on landing pages once this timestamp has been reached. +* unpublish_on (optional) + * The message will disappear from landing pages once this timestamp has been reached + * If no value is provided, the message will stay forever +* importance + * Select a level of importance from the given options + * Depending on the selected level, other styles will be used to highlight the message entry on the landing pages + * standard --> regular, no specific background color + * info --> informative, light blue background color + * warning --> warning, light red background color \ No newline at end of file