minor display fix
[wolnelektury.git] / apps / funding / templates / funding / offer_detail.html
index 898f847..9dad6fe 100755 (executable)
@@ -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 %}
 
 <h1>{{ object }}</h1>
 
 
 <h1>{{ object }}</h1>
 
-<div class="normal-text">{{ object.description|safe }}</div>
-
 {% funding object show_title=False %}
 <div class="white-box">
 {% funding object show_title=False %}
 <div class="white-box">
-    {% if object.cover %}
-        <img src="{{ object.cover.url }}" class="funding-cover"/>
-    {% endif %}
-    <div class="normal-text">
-    {% offer_status object %}
-    {% offer_status_more object %}
-    <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+    <div class="funding-details-intro">
+        {% if object.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>
+        {{ object.description|safe }}
+        {% offer_status object %}
+        {% offer_status_more object %}
+        <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+        </div>
+        
+        <div style="clear:both;"></div>
     </div>
     </div>
-    
-    <div style="clear:both;"></div>
 
     {% if object.is_current %}
         <div class="normal-text">
 
     {% if object.is_current %}
         <div class="normal-text">
     {% 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 }}&nbsp;zł</td>
+            <td>&nbsp;
                 {% 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 %}&nbsp;
-            </div></td>
+                {% endfor %}
+            </td>
     {% endfor %}
     </table>
     
     {% endfor %}
     </table>