add feature based rendering

This commit is contained in:
lelo 2025-12-20 09:28:58 +00:00
parent c4ba71aadc
commit 51f99b75d4
3 changed files with 7 additions and 5 deletions

1
app.py
View File

@ -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()

View File

@ -61,12 +61,14 @@
</div>
{% endif %}
{% if features %}
<!-- Tab Navigation -->
<nav class="main-tabs">
<button class="tab-button active" data-tab="browse">Audio/Photo</button>
<button class="tab-button" data-tab="messages">Nachrichten</button>
<button class="tab-button" data-tab="calendar">Kalender</button>
{% if "files" in features %}<button class="tab-button active" data-tab="browse">Audio/Photo</button>{% endif %}
{% if "messages" in features %}<button class="tab-button" data-tab="messages">Nachrichten</button>{% endif %}
{% if "calendar" in features %}<button class="tab-button" data-tab="calendar">Kalender</button>{% endif %}
</nav>
{% endif %}
<!-- Browse Section -->
<main id="browse-section" class="tab-content active">

View File

@ -56,9 +56,8 @@
{% if admin_enabled %}
<div class="row g-3 mt-1" id="calendarRecurrenceRow">
<div class="col-md-6">
<label for="calendarRepeatCount" class="form-label">Wöchentliche Wiederholung</label>
<label for="calendarRepeatCount" class="form-label">Anzahl Wiederholung (Wöchentlich)</label>
<input type="number" class="form-control" id="calendarRepeatCount" min="1" max="52" step="1" value="1">
<div class="form-text">Legt einzelne wöchentliche Termine an (für Nachbearbeitung).</div>
</div>
</div>
{% endif %}