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