coloritos

This commit is contained in:
buenosairesam
2025-01-25 07:48:39 -03:00
parent 68f91f06de
commit bada099d5e

View File

@@ -19,6 +19,10 @@
color:grey;
}
.blue {
color:blue;
}
table {
font-size: 84pt
}
@@ -36,13 +40,19 @@
{% block content %}
<table>
{% for row in rows %}
{% set my_class = 'grey' if row["ws"] not in ['Active', 'Idle'] else '' %}
<tr>
{% for row in rows %}
{% if row["ws"] in ['Away', 'Other'] %}
{% set my_class = 'blue' %}
{% elif row["ws"] in ['Active', 'Idle'] %}
{% set my_class = '' %}
{% else %}
{% set my_class = 'grey' %}
{% endif %}
<tr>
<td class="{{my_class}}" >{{ row["ws"] }}</td>
<td class="{{my_class}}" >{{ row["total"] }}</td>
</tr>
{% endfor %}
{% endfor %}
</table>
{% endblock %}
</body>