Be more SSL-friendly.
[wolnelektury.git] / apps / funding / templates / funding / offer_detail.html
index 80d0965..39c583b 100755 (executable)
@@ -1,9 +1,10 @@
 {% extends "base.html" %}
 {% load url from future %}
-{% load i18n %}
+{% load i18n static %}
 {% load funding_tags %}
 {% load pagination_tags %}
 {% load fnp_share %}
+{% load thumbnail %}
 
 
 {% block titleextra %}{{ object }}{% endblock %}
 <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>
@@ -41,7 +48,7 @@
                 {{ 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>
     {% 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 %}
-            </div></td>
-            <td><div>{{ funding.amount }} zł</div></td>
-            <td><div>
+            </td>
+            <td>{{ funding.amount }}&nbsp;zł</td>
+            <td>&nbsp;
                 {% for perk in funding.perks.all %}
                     {{ perk.name }}{% if not forloop.last %},{% endif %}
-                {% endfor %}&nbsp;
-            </div></td>
+                {% endfor %}
+            </td>
     {% endfor %}
     </table>