Browse Source

Merge pull request 'Html Deadline Hint' (!24) from html_deadline_hint into master

Reviewed-on: #24
pull/27/head
Jonas Havelka 2 years ago
parent
commit
3dc6cdd7ed
  1. 2
      seminar/templatetags/deadliny.py

2
seminar/templatetags/deadliny.py

@ -26,7 +26,7 @@ def deadline_html(deadline: m.Deadline):
m.Deadline.TYP_PRVNI_A_SOUS: 'sous_deadline', m.Deadline.TYP_PRVNI_A_SOUS: 'sous_deadline',
m.Deadline.TYP_CISLA: 'final_deadline', m.Deadline.TYP_CISLA: 'final_deadline',
} }
return mark_safe(f'<span class="{classes[deadline.typ]}">{text}</span>') return mark_safe(f'<span class="{classes[deadline.typ]}" title="{deadline}">{text}</span>')
@register.filter(name='zkrat_nazev_problemu') @register.filter(name='zkrat_nazev_problemu')
def zkrat_nazev_problemu(nazev,width): def zkrat_nazev_problemu(nazev,width):

Loading…
Cancel
Save