random inline css
This commit is contained in:
parent
8e8b446e09
commit
80aa01d76b
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for resitel in resitele %}
|
{% 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}} → {{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}} → {{resitel.ttitul}} {% endif %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -385,7 +385,7 @@ class OdmenyView(generic.TemplateView):
|
||||||
ftitul = resitel.get_titul(fbody)
|
ftitul = resitel.get_titul(fbody)
|
||||||
ttitul = resitel.get_titul(tbody)
|
ttitul = resitel.get_titul(tbody)
|
||||||
if probody:
|
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:
|
else:
|
||||||
if ftitul != ttitul:
|
if ftitul != ttitul:
|
||||||
outlist.append({'jmeno': resitel.osoba.plne_jmeno(), 'ftitul': ftitul, 'ttitul': ttitul})
|
outlist.append({'jmeno': resitel.osoba.plne_jmeno(), 'ftitul': ftitul, 'ttitul': ttitul})
|
||||||
|
|
Loading…
Reference in a new issue