notification-badge #409

Merged
philipp merged 23 commits from notification-badge into staging 2024-04-19 15:55:02 +02:00
Showing only changes of commit 4c6ef71a17 - Show all commits

View File

@ -180,18 +180,24 @@
<div class="p-2 border border-t-0 border-{{ bg }} mb-4 rounded-b-md"> <div class="p-2 border border-t-0 border-{{ bg }} mb-4 rounded-b-md">
{% if participants | length > 0 %} {% if participants | length > 0 %}
{% for rower in participants %} {% for rower in participants %}
{{ rower.name }} <div class="relative">
{% if rower.is_guest %}<small class="text-gray-600 dark:text-gray-100">(Scheckbuch)</small>{% endif %} {{ rower.name }}
{% if rower.is_real_guest %} {% if rower.is_guest %}<small class="text-gray-600 dark:text-gray-100">(Scheckbuch)</small>{% endif %}
<small class="text-gray-600 dark:text-gray-100">(Gast)</small> {% if rower.is_real_guest %}
{% if allow_removing %} <small class="text-gray-600 dark:text-gray-100">(Gast)</small>
<a href="/planned/remove/{{ trip_details_id }}/{{ rower.name }}" {% if allow_removing %}
class="btn btn-attention btn-fw">Abmelden</a> <a href="/planned/remove/{{ trip_details_id }}/{{ rower.name }}"
class="absolute r-0 bg-red-500 w-5 h-5 text-white rounded-full flex items-center justify-center transform rotate-45 top-0 right-0">
<svg class="inline h-5 w-5" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path>
</svg>
<span class="sr-only">Abmelden</span>
</a>
{% endif %}
{% endif %} {% endif %}
{% endif %} <span class="hidden">(angemeldet seit
<span class="hidden">(angemeldet seit {{ rower.registered_at }})</span>
{{ rower.registered_at }})</span> </div>
<br />
{% endfor %} {% endfor %}
{% else %} {% else %}
{{ text }} {{ text }}