From 7874f05f4b3c56d0623ac6f87981249c411b8302 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 16 May 2013 12:07:39 +0200 Subject: [PATCH] Showing cover on the offer details page --- apps/funding/static/funding/funding.scss | 5 +++++ apps/funding/templates/funding/offer_detail.html | 6 +++++- apps/funding/templates/funding/tags/funding.html | 2 +- apps/funding/templatetags/funding_tags.py | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) 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 %}