]> git.parisson.com Git - mezzo.git/commitdiff
fix parent event on slider
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 2 May 2016 11:22:48 +0000 (13:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 2 May 2016 11:22:48 +0000 (13:22 +0200)
app/templates/agenda/includes/event_metainfo_slider.html
app/templates/base.html

index aa141ab9e03d0c9f5349b76c10deb300b77cfc04..9b395abde39a738af99e222cfb67c8f59a8c7b0c 100644 (file)
                 <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 d5d8c66fe27d32c80782b9700383a246583907ff..2f4ecc0ae3070359307035ee2ef40828d0ec4d42 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>