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 %} - Audio/Photo - Nachrichten - Kalender + {% if "files" in features %}Audio/Photo{% endif %} + {% if "messages" in features %}Nachrichten{% endif %} + {% if "calendar" in features %}Kalender{% endif %} + {% 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 %} - Wöchentliche Wiederholung + Anzahl Wiederholung (Wöchentlich) - Legt einzelne wöchentliche Termine an (für Nachbearbeitung). {% endif %}