]> git.parisson.com Git - mezzo.git/commitdiff
Fix page card again
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 24 Aug 2016 13:31:27 +0000 (15:31 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 24 Aug 2016 13:31:27 +0000 (15:31 +0200)
app/templates/pages/includes/page_card.html
lib/mezzanine-agenda

index 26f113e7e6c5bd843000d2c92a91d2cfd10ca6a5..b7ef60aa1a96db1bf19eb91f0bca4f4340970ef1 100644 (file)
@@ -1,7 +1,7 @@
 {% load mezzanine_tags organization_tags %}
 <a href="{{ object.get_absolute_url }}" title="{{ object.title }}" class="page-box">
     <div class="page-box__image">
-      {% with slider.content_object.page_images.all|get_type:'card' as image %}
+      {% with object.page_images.all|get_type:'card' as image %}
         <img src="{{ MEDIA_URL }}{% thumbnail image.file 900 400 %}" />
       {% endwith %}
     </div>
index 02dcb08dd9b735507ceec68a084fc07774a595d1..85265dec14e637e41a2f8adfc64b4b62a990ce95 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 02dcb08dd9b735507ceec68a084fc07774a595d1
+Subproject commit 85265dec14e637e41a2f8adfc64b4b62a990ce95