fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better funding tables styling.
[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
..
5cd3e09
100755
(executable)
--- 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 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>
@@
-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 %}
{% endfor %}
{% for perk in funding.perks.all %}
{{ perk.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
- </
div></
td>
+ </td>
{% endfor %}
</table>
{% endfor %}
</table>