random inline css

This commit is contained in:
ticvac 2025-02-26 20:51:52 +01:00
parent 8e8b446e09
commit 80aa01d76b
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
<ul>
{% for resitel in resitele %}
<li>{{ resitel.jmeno }}: {% if resitel.bodydiff > 3 %}🧦{% endif %} {% if resitel.posilat %}POSÍLAT DOMŮ{% endif %} {% if resitel.ttitul != resitel.ftitul %} {{resitel.ftitul}} &rarr; {{resitel.ttitul}} {% endif %}</li>
<li {% if resitel.neposilame %}style="color: white; background-color: red;"{% endif %}>{{ resitel.jmeno }}: {% if resitel.bodydiff > 3 %}🧦{% endif %} {% if resitel.ttitul != resitel.ftitul %} {{resitel.ftitul}} &rarr; {{resitel.ttitul}} {% endif %}</li>
{% endfor %}
</ul>

View file

@ -385,7 +385,7 @@ class OdmenyView(generic.TemplateView):
ftitul = resitel.get_titul(fbody)
ttitul = resitel.get_titul(tbody)
if probody:
outlist.append({'jmeno': resitel.osoba.plne_jmeno(), 'fbody': fbody, 'tbody': tbody, 'ftitul': ftitul, 'ttitul': ttitul, 'bodydiff': tbody - fbody, "posilat": resitel.zasilat_cislo_papirove})
outlist.append({'jmeno': resitel.osoba.plne_jmeno(), 'fbody': fbody, 'tbody': tbody, 'ftitul': ftitul, 'ttitul': ttitul, 'bodydiff': tbody - fbody, "neposilame": not(resitel.zasilat_cislo_papirove)})
else:
if ftitul != ttitul:
outlist.append({'jmeno': resitel.osoba.plne_jmeno(), 'ftitul': ftitul, 'ttitul': ttitul})