Hide unnecessary categories in groups

This commit is contained in:
Gabriel Augendre 2023-01-18 21:29:57 +01:00
parent 21c8e96132
commit 9448feed1d

View file

@ -8,6 +8,7 @@
<a href="{% url "party:create" %}" class="btn btn-primary mb-3">
<i class="fa-solid fa-user-plus"></i> Nouveau groupe
</a>
{% if managed_parties %}
<h2>Groupes que vous gérez</h2>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
{% for party in managed_parties %}
@ -32,10 +33,10 @@
</div>
</div>
</div>
{% empty %}
<div class="col">Aucun</div>
{% endfor %}
</div>
{% endif %}
{% if played_parties %}
<h2 class="mt-3">Groupes dont vous êtes membre</h2>
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
{% for party in played_parties %}
@ -51,10 +52,10 @@
</div>
</div>
</div>
{% empty %}
<div class="col">Aucun</div>
{% endfor %}
</div>
{% endif %}
{% if invited_to %}
<h2 class="mt-3">Groupes auxquels vous avez été invités</h2>
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
{% for party in invited_to %}
@ -70,8 +71,7 @@
</div>
</div>
</div>
{% empty %}
<div class="col">Aucun</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}