2
0
Fork 0

Always show 'Details' button on shift list items

This commit is contained in:
Luca 2023-05-05 20:51:55 +02:00
parent d4fdc952aa
commit 159e1b719f
1 changed files with 3 additions and 4 deletions

View File

@ -8,11 +8,10 @@
<strong>Beginn:</strong> {{ shift.start_at }}<br> <strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }} <strong>Dauer:</strong> {{ shift.duration }}
</div> </div>
<div class="is-flex is-justify-content-end"> <div class="buttons is-right">
{% if registered %}
<a class="button is-info is-small" href="{% url 'shift' shift.id %}">Details</a> <a class="button is-info is-small" href="{% url 'shift' shift.id %}">Details</a>
{% else %} {% if not registered %}
<a class="button is-primary is-small" href="{% url 'shift' shift.id %}">Mithelfen</a> <a class="button is-primary is-small ml-3" href="{% url 'shift' shift.id %}">Mithelfen</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>