Přidání titulku k výpisu deadlinu
Po najetí myší řekne, co znamenají symboly…
This commit is contained in:
parent
13c8c29bb0
commit
d5cf81c32a
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ def deadline_html(deadline: m.Deadline):
|
|||
m.Deadline.TYP_PRVNI_A_SOUS: 'sous_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')
|
||||
def zkrat_nazev_problemu(nazev,width):
|
||||
|
@ -35,4 +35,4 @@ def zkrat_nazev_problemu(nazev,width):
|
|||
nazev = nazev[:width-1] + "..."
|
||||
else:
|
||||
nazev = nazev[:width] + "..."
|
||||
return nazev
|
||||
return nazev
|
||||
|
|
Loading…
Reference in a new issue