From: Aleksander Ćukasz <aleksander.lukasz@nowoczesnapolska.org.pl> Date: Wed, 29 May 2013 10:13:53 +0000 (+0200) Subject: Funding: Using thumbnail for the cover image on the offer detail page X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/45632aee424aa72050e905718457d7a7203ead30?ds=sidebyside Funding: Using thumbnail for the cover image on the offer detail page --- diff --git a/apps/funding/templates/funding/offer_detail.html b/apps/funding/templates/funding/offer_detail.html index 80d0965f5..905e03b46 100755 --- a/apps/funding/templates/funding/offer_detail.html +++ b/apps/funding/templates/funding/offer_detail.html @@ -4,6 +4,7 @@ {% load funding_tags %} {% load pagination_tags %} {% load fnp_share %} +{% load thumbnail %} {% block titleextra %}{{ object }}{% endblock %} @@ -19,7 +20,13 @@ <div class="white-box"> <div class="funding-details-intro"> {% if object.cover %} - <img src="{{ object.cover.url }}" class="funding-cover"/> + <img src=" + {% thumbnail object.cover "139x193" as thumb %} + {{ thumb.url }} + {% empty %} + {{ object.cover.url }} + {% endthumbnail %} + " alt="Cover" class="funding-cover" /> {% endif %} <div class="normal-text"> <h3>{% trans "Help free the book!" %}</h3>