]> git.0d.be Git - panikweb.git/commitdiff
home: only display day tag if there's a single day
authorFrédéric Péters <fpeters@0d.be>
Mon, 1 Jul 2019 06:40:06 +0000 (08:40 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 1 Jul 2019 06:40:06 +0000 (08:40 +0200)
panikweb_templates/templates/home.html

index 3d72957fc23f6291ece0c53a286fcd605a3b4775..7941f1d18738aeba0b5180ff5a64a61e0aec6bc2 100644 (file)
@@ -47,7 +47,7 @@
               <div class="tags">
               {% if emission.has_focus %}<span>#podcast</span>{% endif %}
               {% for schedule in emission.schedule_set.all %}
-                {% if forloop.counter0 == 0 %}#{{schedule.datetime|date:"l"}}{% endif %}
+                {% if forloop.first and forloop.last %}#{{schedule.datetime|date:"l"}}{% endif %}
               {% endfor %}
               <!-- &nbsp;<span>#espe{{emission.creation_timestamp|date:"Y"}}</span> -->
               </div>