Funding wip: rewording and banner tweaks
[wolnelektury.git] / apps / funding / templates / funding / tags / funding.html
index c842f8a..ec6f297 100755 (executable)
@@ -4,23 +4,28 @@
 {% spaceless %}
 <div class="funding" style="">
     {% if link and is_current %}
-        <a class="call honking" href="{% url 'funding_current' offer.slug %}">
-            {% trans "Support a book!" %}</a>
+        <div style="float:left; padding-right: .6em;">
+            <a class="call honking" href="{% url 'funding_current' offer.slug %}">
+                {% trans "Support!" %}</a>
+            <div style="text-align: center; margin: auto;">
+                <a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>
+            </div>
+        </div>
     {% endif %}
     <div class="description {% if link and is_current %}with-button{% endif %}"
         style="display: inline-block;">
     {% if link %}<a href="{% if is_current %}{% url 'funding_current' offer.slug %}{% else %}{{ offer.get_absolute_url }}{% endif %}">{% endif %}
-    <strong>
-        {{ offer }}
-    </strong>
+    {% if is_current %}<strong style="">{% trans "Help free the book!" %}</strong>{% endif %}
+    <span class="funding-title{% if not is_current %}-strong{% endif %}">{{ offer }}</span>
+
     <div class="progress"
         style="text-align: center; background-size: {{ percentage|stringformat:'.2f' }}% 1px;"
     >
         {% if sum %}
-            <span class="piece" style="float:left">{% trans "collected" %}: <em>{{ sum }} zł</em></span>
+            <span class="piece" style="float:left">{% trans "missing" %}: {{ missing }} zł</span>
         {% endif %}
         {% if not is_win %}
-            <span class="piece" style="float: right">{% trans "missing" %}: <em>{{ missing }} zł</em></span>
+            <span class="piece" style="float: right">{% trans "collected" %}: {{ sum }} zł</span>
         {% endif %}
         {% if is_current %}
             <span class="piece" style="display:inline-block;margin-right: 0em;">{% trans "until fundraiser end" %}:
@@ -32,6 +37,7 @@
     </div>
     {% if link %}</a>{% endif %}
     </div>
+    <div style="clear: both"></div>
 </div>
 {% endspaceless %}
 {% endif %}