Some layout experiments.
[wolnelektury.git] / apps / funding / templates / funding / tags / offer_status_more.html
diff --git a/apps/funding/templates/funding/tags/offer_status_more.html b/apps/funding/templates/funding/tags/offer_status_more.html
new file mode 100755 (executable)
index 0000000..6291e9f
--- /dev/null
@@ -0,0 +1,28 @@
+{% load i18n %}
+
+{% if offer.is_current %}
+        <p class="normal-text">
+            {% include "funding/snippets/any_remaining.html" %}
+        </p>
+{% else %}
+    <p class="date normal-text">{{ offer.start }} – {{ offer.end }}</p>
+    {% if offer.is_win %}
+        <p class="normal-text">
+            {% if offer.book %}
+                {% blocktrans with bu=offer.book.get_absolute_url bt=offer.book %}The book
+                <a href="{{ bu }}">{{ bt }}</a> has been already published.{% endblocktrans %}
+            {% else %}
+                {% blocktrans with due=offer.due %}The book
+                will be published by {{ due }}.{% endblocktrans %}
+                {% if offer.redakcja_link %}
+                    {% blocktrans with r=offer.redakcja_url %}You can follow
+                    the work on the <a href="{{ r }}">Editorial Platform</a>.{% endblocktrans %}
+                {% endif %}
+            {% endif %}
+        </p>
+    {% endif %}
+
+    {% if offer.remaining %}
+        <p class="normal-text">{% include "funding/snippets/any_remaining.html" %}</p>
+    {% endif %}
+{% endif %}