From 8a539a2868430978994b09ec2799e8f3e421d26a Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 20 Aug 2024 12:18:52 +0300 Subject: [PATCH] 1.2.2 limitation of color selection for 24 hours TRI-228 --- templates/widgets/routes/w_my_route.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/widgets/routes/w_my_route.html b/templates/widgets/routes/w_my_route.html index d121ffb..87c5122 100644 --- a/templates/widgets/routes/w_my_route.html +++ b/templates/widgets/routes/w_my_route.html @@ -1,15 +1,16 @@ {% load static %} {% load i18n %} - {% if route.departure_DT %} {% with current_datetime=route.from_city.get_current_datetime %} {% with departure_datetime=route.departure_DT %} - {% if current_datetime|date:"Y-m-d H:i:s" > departure_datetime|date:"Y-m-d H:i:s" %} -
- {% else %} -
- {% endif %} + {% with highlight_end_DT=route.highlight_end_DT %} + {% if current_datetime|date:"Y-m-d H:i:s" > departure_datetime|date:"Y-m-d H:i:s" %} +
+ {% else %} +
current_datetime|date:"Y-m-d H:i:s" %} highlight-color {% endif %}" data-number-of-route="{{ route.id }}"> + {% endif %} + {% endwith %} {% endwith %} {% endwith %} {% endif %}