Remove inappropriate "Quit" button

This commit is contained in:
augustin64 2024-04-19 18:48:19 +02:00
parent 178a540791
commit f6690f2013
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
{% endif %}
{% if not_participant %}
<a href="/albums/{{ album.uuid }}/join">{{ _("Join") }}</a>
{% elif album.users | length > 1 %}
{% elif g.user and not not_participant %}
<a href="/albums/{{ album.uuid }}/quit">{{ _("Quit") }}</a>
{% endif %}
<a href="#share">{{ _("Share") }}</a>

View File

@ -45,7 +45,7 @@
<div class="dropdown-content dp1">
{% if not_participant %}
<a href="/groupe/{{ groupe.uuid }}/join">{{ _("Join") }}</a>
{% elif groupe.users | length > 1 and g.user %}
{% elif g.user and not not_participant %}
<a href="/groupe/{{ groupe.uuid }}/quit">{{ _("Quit") }}</a>
{% endif %}
<a href="#share">{{ _("Share") }}</a>