1.7.18 w_carrier_card.html fix route.highlight_end_DT

This commit is contained in:
SDE
2024-11-12 16:04:12 +03:00
parent e03f4a015a
commit a329720f1c
3 changed files with 5 additions and 17 deletions

View File

@@ -11,7 +11,7 @@
{% if current_datetime|date:"Y-m-d H:i:s" > departure_datetime|date:"Y-m-d H:i:s" %}
<div class="carrier-card out_of_date" data-number-of-route="{{ route.id }}">
{% else %}
<div class="carrier-card {% if route.highlight_color %} highlight-color {% endif %}" data-number-of-route="{{ route.id }}">
<div class="carrier-card {% if route.highlight_color and route.highlight_end_DT|date:"Y-m-d H:i:s" > current_datetime|date:"Y-m-d H:i:s" %} highlight-color {% endif %}" data-number-of-route="{{ route.id }}">
{% endif %}
{% endwith %}
{% endwith %}