Add GameManager for filtering active games and update group_games template

This commit is contained in:
Edgar P. Burkhart 2025-06-15 16:11:24 +02:00
parent 302b884b23
commit 486f650ea6
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,10 @@
{% load form youtube %}
{% if group.musikgame_set.exists %}
{% for game in group.musikgame_set.playing %}
<a class="running" href="{{ game.get_absolute_url }}">
<article><i class="ri-play-circle-fill i"></i>{{ game.date }}</article>
</a>
{% endfor %}
<h2>
<i class="ri-play-circle-fill"></i> Parties
</h2>