X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6280673f35e13e75e81c5b7821bd2a44a1831eab..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/src/funding/templates/funding/offer_list.html?ds=inline diff --git a/src/funding/templates/funding/offer_list.html b/src/funding/templates/funding/offer_list.html new file mode 100644 index 000000000..e8088bfa8 --- /dev/null +++ b/src/funding/templates/funding/offer_list.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% load url from future %} +{% load i18n %} +{% load ssi_include from ssify %} +{% load pagination_tags %} + +{% block titleextra %}{% trans "All fundraisers" %}{% endblock %} + +{% block bodyid %}funding-offer-list{% endblock %} + +{% block body %} +

{% trans "All fundraisers" %}

+ + +{% 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 not is_current and forloop.first and page_obj.number == 1 %} +

{% trans "No fundraiser is currently running." %}

+

{% trans "Previous fundraisers:" %}

+ {% endif %} + + {% ssi_include 'funding_list_bar' pk=offer.pk %} + +
+ {% if is_current %} +

{% trans "Help free the book!" %}

+ {{ offer.description|safe }} + {% endif %} + {% ssi_include 'funding_status' pk=offer.pk %} + {% ssi_include 'funding_status_more' pk=offer.pk %} + +
+ + {% if is_current and not forloop.last %} +

{% trans "Previous fundraisers:" %}

+ {% endif %} + +{% endwith %} +{% endfor %} +{% paginate %} + +{% endblock %}