fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Funding: behave nicer with time conflicts.
[wolnelektury.git]
/
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
index
915307d
..
feb175d
100644
(file)
--- a/
apps/funding/templates/funding/offer_list.html
+++ b/
apps/funding/templates/funding/offer_list.html
@@
-13,12
+13,14
@@
{% autopaginate object_list 10 %}
{% autopaginate object_list 10 %}
+{% if page_obj.number == 1 %}
+ <h2>{% trans "Current fundraiser:" %}</h2>
+{% endif %}
+
{% for offer in object_list %}
{% with is_win=offer.is_win is_current=offer.is_current %}
{% for offer in object_list %}
{% with is_win=offer.is_win is_current=offer.is_current %}
-
- {% if is_current %}
- <h2>{% trans "Current fundraiser:" %}</h2>
- {% elif forloop.is_first %}
+ {% if not is_current and forloop.first and page_obj.number == 1 %}
+ <p class="normal-text">{% trans "No fundraiser is currently running." %}</p>
<h2>{% trans "Previous fundraisers:" %}</h2>
{% endif %}
<h2>{% trans "Previous fundraisers:" %}</h2>
{% endif %}