Add activity push notifications and registration patches

This commit is contained in:
2026-09-15 08:31:45 +02:00
parent 7c801dfddd
commit 55174684af
38 changed files with 1096 additions and 42 deletions
+11 -1
View File
@@ -135,7 +135,7 @@
{% for badge in badges %}
{% if badge.earned %}
<button class="patch-button" type="button" onclick="document.getElementById('patch-{{ badge.code }}').showModal()" aria-label="{{ _('Details zu') }} {{ badge.name | t }} {{ _('anzeigen') }}">
<span class="patch earned {% if badge.image_path %}patch-image-frame{% else %}patch-icon-frame{% endif %}" title="{{ badge.name | t }} {{ badge.description | t }}">
<span class="patch earned patch-{{ badge.code }} {% if badge.image_path %}patch-image-frame{% else %}patch-icon-frame{% endif %}" title="{{ badge.name | t }} {{ badge.description | t }}">
{% if badge.image_path %}
<img class="patch-image" src="{{ badge.image_path }}" alt="Patch {{ badge.name | t }}">
{% else %}
@@ -243,6 +243,16 @@
<span class="avatar-upload-status" id="avatar-upload-status">{{ _('Große Bilder werden vor dem Upload automatisch optimiert.') }}</span>
<button class="button" type="submit">{{ _('Profil speichern') }}</button>
</form>
<section id="notification-settings">
<h2>{{ _('Push-Benachrichtigungen') }}</h2>
<p>{{ _('Wähle, welche Hinweise du auf deinen angemeldeten Android-Geräten erhalten möchtest. Nachrichteninhalte werden nicht angezeigt.') }}</p>
<form method="post" action="/profile/notifications" class="notification-preferences">
{% for kind, label in [('friend_request', 'Freundschaftsanfragen'), ('direct_message', 'Direktnachrichten'), ('event_invitation', 'Veranstaltungseinladungen')] %}
<label><input type="checkbox" name="{{ kind }}" value="true"{% if push_preferences is not defined or push_preferences[kind] %} checked{% endif %}> {{ label | t }}</label>
{% endfor %}
<button class="button" type="submit">{{ _('Benachrichtigungen speichern') }}</button>
</form>
</section>
<div class="account-actions">
<details class="account-delete">
<summary>{{ _('Account löschen') }}</summary>