From bada099d5eb0a8fdd38166cb3c8fbe8a6eea5024 Mon Sep 17 00:00:00 2001 From: buenosairesam Date: Sat, 25 Jan 2025 07:48:39 -0300 Subject: [PATCH] coloritos --- dmapp/dmweb/templates/main.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/dmapp/dmweb/templates/main.html b/dmapp/dmweb/templates/main.html index b3de627..4bd03ae 100644 --- a/dmapp/dmweb/templates/main.html +++ b/dmapp/dmweb/templates/main.html @@ -19,6 +19,10 @@ color:grey; } + .blue { + color:blue; + } + table { font-size: 84pt } @@ -36,13 +40,19 @@ {% block content %} - {% for row in rows %} - {% set my_class = 'grey' if row["ws"] not in ['Active', 'Idle'] else '' %} - + {% 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 %} + - {% endfor %} + {% endfor %}
{{ row["ws"] }} {{ row["total"] }}
{% endblock %}