X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f9ebfca6f51df543810066816ce90b79932cd458..82c3054bcdeb000aa9782da80d644070797b5cbe:/apps/funding/templates/funding/offer_list.html
diff --git a/apps/funding/templates/funding/offer_list.html b/apps/funding/templates/funding/offer_list.html
old mode 100755
new mode 100644
index 0770b100e..e8088bfa8
--- a/apps/funding/templates/funding/offer_list.html
+++ b/apps/funding/templates/funding/offer_list.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
-{% load funding_tags %}
+{% load ssi_include from ssify %}
{% load pagination_tags %}
{% block titleextra %}{% trans "All fundraisers" %}{% endblock %}
@@ -13,27 +13,30 @@
{% autopaginate object_list 10 %}
+{% if page_obj.number == 1 %}
+
{% trans "Current fundraiser:" %}
+{% endif %}
+
{% for offer in object_list %}
{% with is_win=offer.is_win is_current=offer.is_current %}
-
- {% if is_current %}
- {% trans "Current fundraiser:" %}
- {% elif forloop.is_first %}
+ {% if not is_current and forloop.first and page_obj.number == 1 %}
+ {% trans "No fundraiser is currently running." %}
{% trans "Previous fundraisers:" %}
{% endif %}
- {% funding offer link=1 show_title_calling=False %}
+ {% ssi_include 'funding_list_bar' pk=offer.pk %}
{% if is_current %}
{% trans "Help free the book!" %}
{{ offer.description|safe }}
{% endif %}
- {% offer_status offer %}
- {% offer_status_more offer %}
+ {% ssi_include 'funding_status' pk=offer.pk %}
+ {% ssi_include 'funding_status_more' pk=offer.pk %}
+
- {% if is_current and not forloop.is_last %}
+ {% if is_current and not forloop.last %}
{% trans "Previous fundraisers:" %}
{% endif %}