From e5f3eeacb550a6ec7d9bb529ef9a3da16e43491c Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 4 Jan 2013 19:21:34 -0500 Subject: [PATCH] try to correct logic for pledigng in list view --- frontend/templates/book_panel.html | 41 +++++++++++++++++------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/frontend/templates/book_panel.html b/frontend/templates/book_panel.html index 4f595e6d..75a203f8 100644 --- a/frontend/templates/book_panel.html +++ b/frontend/templates/book_panel.html @@ -125,14 +125,15 @@ {% comment %}same logic as above{% endcomment %} {% if request.user.is_anonymous %} -
- Login to Add -
+
+ Login to Add +
{% else %}{% if request.user.id in supporters %} -
- Pledged! -
+
+ Pledged! +
{% else %}{% ifequal supporter request.user %} + {% comment %} used only on your own supporter page. {% endcomment %} {% ifequal status "ACTIVE" %}
Pledge @@ -142,23 +143,29 @@ Un-wishlist
{% endifequal %} - {% else %}{% if work in wishlist %} -
- On Wishlist! -
- {% else %} -
- {% ifequal status "ACTIVE" %} - Pledge + {% else %}{% ifequal status "ACTIVE" %} + {% if request.user.id in supporters %} +
+ Pledged! +
{% else %} +
+ Pledge +
+ {% endif %} + {% else %}{% if work in wishlist %} +
+ On Wishlist! +
+ {% else %} +
{% if on_search_page %} Add to Wishlist {% else %} Add to Wishlist {% endif %} - {% endifequal %} -
- {% endif %}{% endifequal %}{% endif %}{% endif %} +
+ {% endif %}{% endifequal %}{% endifequal %}{% endif %}{% endif %}
{% ifequal status "ACTIVE" %}