diff --git a/seminar/templates/seminar/odevzdavatko/resitel_prehled.html b/seminar/templates/seminar/odevzdavatko/resitel_prehled.html index 43a95d95..be2e94bd 100644 --- a/seminar/templates/seminar/odevzdavatko/resitel_prehled.html +++ b/seminar/templates/seminar/odevzdavatko/resitel_prehled.html @@ -2,10 +2,23 @@ {% load static %} {% load deadliny %} +{% block custom_css %} + +{% endblock custom_css %} + {% block content %} {% for rocnik, hodnoceni in podle_rocniku %}
Doručeno | Problém | diff --git a/seminar/templatetags/deadliny.py b/seminar/templatetags/deadliny.py index b7a0142d..81500d73 100644 --- a/seminar/templatetags/deadliny.py +++ b/seminar/templatetags/deadliny.py @@ -13,10 +13,20 @@ def deadline_text(datum): } return strings[typ] +@register.filter(name='deadline_kratseji') +def deadline_kratsi_text(datum): + typ, cislo, dl = deadline(datum) + strings = { + TypDeadline.PredDeadline: f"1. deadline {cislo}", + TypDeadline.SousDeadline: f"Soustřeďkový deadline {cislo}", + TypDeadline.FinalDeadline: f"Finální deadline {cislo}", + } + return strings[typ] + @register.filter(name='deadline_html') def deadline_html(datum): typ, _, _ = deadline(datum) - text = deadline_text(datum) + text = deadline_kratsi_text(datum) classes = { TypDeadline.PredDeadline: 'preddeadline', TypDeadline.SousDeadline: 'sous_deadline',
---|