Remove plus icon from not primary users

This commit is contained in:
Verox001 2024-03-01 09:25:36 +01:00
parent 2dc3cbf047
commit c2c38f55c4

View File

@ -66,6 +66,8 @@
<div class="row mb-3 align-items-center">
<!-- Personen die zur Liste gehören -->
{% if habit_list.get_users()[0].id == current_user.id %}
{% if habit_list.get_users()|length > 1 %}
<div class="col">
<div class="avatar-stack">
{% for user in habit_list.get_users() %}
@ -75,15 +77,19 @@
{% endfor %}
</div>
</div>
{% endif %}
<!-- Knopf für das Hinzufügen einer Person zur gemeinsamen Liste -->
<div class="col">
<a href="/users?habit_list={{habit_list.id}}" style="width: 40px; height: 40px; min-height: 3em;">
<a href="/users?habit_list={{habit_list.id}}" style="width: 40px; height: 40px; min-height: 3em;" data-toggle="tooltip" data-placement="top" title="Benutzer einladen">
<i class="bi bi-plus-circle"></i>
</a>
</div>
{% else %}
<div class="col"></div>
{% endif %}
<div class="col-6"></div>