1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-02 07:18:29 +02:00
Files
plateforme-corres2math/apps/participation/templatetags/calendar.py
2020-11-15 01:50:12 +01:00

13 lines
253 B
Python

from django import template
from ..models import Phase
def current_phase(nb):
phase = Phase.current_phase()
return phase is not None and phase.phase_number == nb
register = template.Library()
register.filter("current_phase", current_phase)