From 51f99b75d4270b47a0861566cd112759d5fffdb0 Mon Sep 17 00:00:00 2001 From: lelo Date: Sat, 20 Dec 2025 09:28:58 +0000 Subject: [PATCH] add feature based rendering --- app.py | 1 + templates/app.html | 8 +++++--- templates/calendar_section.html | 3 +-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 5311148..4417201 100755 --- a/app.py +++ b/app.py @@ -1197,6 +1197,7 @@ def index(path): search_folders = folder_names, title_short=app_config.get('TITLE_SHORT', 'Default Title'), title_long=app_config.get('TITLE_LONG' , 'Default Title'), + features=app_config.get('FEATURES', None), og_title=og_title, og_description=og_description, admin_enabled=auth.is_admin() diff --git a/templates/app.html b/templates/app.html index e226bda..8729289 100644 --- a/templates/app.html +++ b/templates/app.html @@ -61,12 +61,14 @@ {% endif %} + {% if features %} + {% endif %}
diff --git a/templates/calendar_section.html b/templates/calendar_section.html index 363ee9b..1d6b707 100644 --- a/templates/calendar_section.html +++ b/templates/calendar_section.html @@ -56,9 +56,8 @@ {% if admin_enabled %}
- + -
Legt einzelne wöchentliche Termine an (für Nachbearbeitung).
{% endif %}