]> git.0d.be Git - panikweb-airlibre.git/commitdiff
Ajout class .current et .future pour li program-week list
authorwintz_collectifs <wintz@collectifs.net>
Mon, 1 May 2023 08:17:20 +0000 (10:17 +0200)
committerwintz_collectifs <wintz@collectifs.net>
Mon, 1 May 2023 08:17:20 +0000 (10:17 +0200)
panikweb_airlibre/templates/includes/week.html

index bfd29cf4fb1a8267c620c70157edc03f03eec2ca..45c8cd52d06bb84051c68dbdae4b759b0bac87c7 100644 (file)
@@ -6,7 +6,7 @@
                 >
     <ul class="custom program-week list">
     {% for cell in day.cells %}
-      <li class="{% if cell.datetime < now %}past{% endif %}">
+      <li class="{% if cell.end_datetime < now %}past{% elif cell.datetime >= now %}future{% else %}current{% endif %}">
 
         <div class="programDate"><strong>{{ cell.datetime|date:"H:i" }} - {{ cell.end_datetime|date:"H:i" }}</strong></div>
         {% if cell.episode %}