fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Be more SSL-friendly.
[wolnelektury.git]
/
apps
/
funding
/
templates
/
funding
/
offer_detail.html
diff --git
a/apps/funding/templates/funding/offer_detail.html
b/apps/funding/templates/funding/offer_detail.html
index
80d0965
..
39c583b
100755
(executable)
--- a/
apps/funding/templates/funding/offer_detail.html
+++ b/
apps/funding/templates/funding/offer_detail.html
@@
-1,9
+1,10
@@
{% extends "base.html" %}
{% load url from future %}
{% extends "base.html" %}
{% load url from future %}
-{% load i18n %}
+{% load i18n
static
%}
{% load funding_tags %}
{% load pagination_tags %}
{% load fnp_share %}
{% load funding_tags %}
{% load pagination_tags %}
{% load fnp_share %}
+{% load thumbnail %}
{% block titleextra %}{{ object }}{% endblock %}
{% block titleextra %}{{ object }}{% endblock %}
@@
-19,7
+20,13
@@
<div class="white-box">
<div class="funding-details-intro">
{% if object.cover %}
<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>
{% endif %}
<div class="normal-text">
<h3>{% trans "Help free the book!" %}</h3>
@@
-41,7
+48,7
@@
{{ form.as_table }}
<tr><td></td><td>
<button type="submit" style="border: none; background: none; cursor: pointer">
{{ form.as_table }}
<tr><td></td><td>
<button type="submit" style="border: none; background: none; cursor: pointer">
- <img alt="{% trans 'Donate!' %}" src="
http://static.payu.com/pl/standard/partners/buttons/payu_account_button_01.png
" />
+ <img alt="{% trans 'Donate!' %}" src="
{% static 'img/payu.png %}
" />
</button>
</td></tr>
</table>
</button>
</td></tr>
</table>
@@
-67,20
+74,20
@@
{% autopaginate fundings 10 %}
{% for funding in fundings %}
<tr class="funding-plus">
{% autopaginate fundings 10 %}
{% for funding in fundings %}
<tr class="funding-plus">
- <td
><div>{{ funding.payed_at.date }}</div>
</td>
- <td>
<div>
+ <td
class="oneline">{{ funding.payed_at.date }}
</td>
+ <td>
{% if funding.name %}
{{ funding.name }}
{% else %}
<em>{% trans "Anonymous" %}</em>
{% endif %}
{% if funding.name %}
{{ funding.name }}
{% else %}
<em>{% trans "Anonymous" %}</em>
{% endif %}
- </
div></
td>
- <td>
<div>{{ funding.amount }} zł</div>
</td>
- <td>
<div>
+ </td>
+ <td>
{{ funding.amount }} zł
</td>
+ <td>
{% for perk in funding.perks.all %}
{{ perk.name }}{% if not forloop.last %},{% endif %}
{% for perk in funding.perks.all %}
{{ perk.name }}{% if not forloop.last %},{% endif %}
- {% endfor %}
- </
div></
td>
+ {% endfor %}
+ </td>
{% endfor %}
</table>
{% endfor %}
</table>