From: Aleksander Ɓukasz Date: Thu, 16 May 2013 10:07:39 +0000 (+0200) Subject: Showing cover on the offer details page X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7874f05f4b3c56d0623ac6f87981249c411b8302?ds=inline Showing cover on the offer details page --- diff --git a/apps/funding/static/funding/funding.scss b/apps/funding/static/funding/funding.scss index 059cc1651..2b06dc6cd 100755 --- a/apps/funding/static/funding/funding.scss +++ b/apps/funding/static/funding/funding.scss @@ -132,4 +132,9 @@ padding: .2em 1em; border-radius: 0 0 0 1em; font-size: 13px; +} + +.funding-cover { + float:left; + margin-right: 10px; } \ No newline at end of file diff --git a/apps/funding/templates/funding/offer_detail.html b/apps/funding/templates/funding/offer_detail.html index da50f13a7..898f8477c 100755 --- a/apps/funding/templates/funding/offer_detail.html +++ b/apps/funding/templates/funding/offer_detail.html @@ -17,14 +17,18 @@
{{ object.description|safe }}
-{% funding object %} +{% funding object show_title=False %}
+ {% if object.cover %} + + {% endif %}
{% offer_status object %} {% offer_status_more object %}

{% trans "Learn more" %}.

+
{% if object.is_current %}
diff --git a/apps/funding/templates/funding/tags/funding.html b/apps/funding/templates/funding/tags/funding.html index 2ee991a6a..5bc232f7d 100755 --- a/apps/funding/templates/funding/tags/funding.html +++ b/apps/funding/templates/funding/tags/funding.html @@ -17,7 +17,7 @@ style="display: inline-block;"> {% if link %}{% endif %} {% if is_current %}{% trans "Help free the book!" %}{% endif %} - {{ offer }} + {% if show_title %}{{ offer }}{% endif %}