]> git.parisson.com Git - mezzo.git/commitdiff
merge multiple event dates
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 10 May 2016 10:52:35 +0000 (12:52 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 10 May 2016 10:52:35 +0000 (12:52 +0200)
app/templates/agenda/includes/event_metainfo_slider.html
app/templates/base.html
lib/mezzanine-agenda

index 9b395abde39a738af99e222cfb67c8f59a8c7b0c..a62fc48981506c0e3621514b05550af101beb8fd 100644 (file)
@@ -7,17 +7,23 @@
                 {% if event.end %}
                 {% if event.end|date == event.start|date and event.end.hour|subtract:event.start.hour > 3 %}{{ event.end|time:"TIME_FORMAT" }}{% endif %}
                 {% endif %}
+                {% for child in event.children.all %}
+                 {% with child as event %}
+                    / {{ event.start }}
+                     {% if event.end %}
+                     {% if event.end|date == event.start|date and event.end.hour|subtract:event.start.hour > 3 %}{{ event.end|time:"TIME_FORMAT" }}{% endif %}
+                     {% endif %}
+                 {% endwith %}
+                {% endfor %}
                 {% if event.location %}
                 <a href="{% url "event_list_location" event.location.slug %}" class="event__meta__location">{{ event.location }}</a>
                 {% endif %}
             </div>
-            {% if not event.parent %}
             <div class="split-right">
                 <a href="{{ event.get_absolute_url }}" class="btn">
                     <i class="icon icon__bookmark"></i> {% trans "Booking" %}
                 </a>
             </div>
-            {% endif %}
         </div>
     </div>
 </div>
index 2f4ecc0ae3070359307035ee2ef40828d0ec4d42..d5d8c66fe27d32c80782b9700383a246583907ff 100644 (file)
                           <a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
                       </p>
                       {% include "agenda/includes/event_metainfo_slider.html" %}
-                      {% for child in event.children.all %}
-                       {% with child as event %}
-                        {% include "agenda/includes/event_metainfo_slider.html" %}
-                       {% endwith %}
-                      {% endfor %}
                     </div>
                   </div>
               </li>
index ea6a3c0c9e0c3cf1809d084b47efdca90e1779d4..c96a36c651c3299ede1c9ca094e31a9593b6c052 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ea6a3c0c9e0c3cf1809d084b47efdca90e1779d4
+Subproject commit c96a36c651c3299ede1c9ca094e31a9593b6c052