diff --git a/biscuit/apps/alsijil/templates/alsijil/group_week.html b/biscuit/apps/alsijil/templates/alsijil/group_week.html index ae51de99e9c9486b8dbda5f9b8d28bed72b99fca..319911a3d522fe4d00b834c347aee42b8bf9ff8d 100644 --- a/biscuit/apps/alsijil/templates/alsijil/group_week.html +++ b/biscuit/apps/alsijil/templates/alsijil/group_week.html @@ -39,7 +39,17 @@ </thead> <tbody> {% for period in periods %} - <tr> + <tr class=" + {% if period.has_documentation %} + table-success + {% else %} + {% weekday_to_date week weekday as current_date %} + {% today as today %} + {% if current_date < today %} + table-danger + {% endif %} + {% endif %} + "> <td>{{ period.period.period }}</td> <td> <a href="{% url 'lesson_by_week_and_period' week period.id %}">