{% comment %} status of book vis-a-vis user's wishlist. Non-logged-in users should see login to add option. Logged-in users, book on wishlist: If they've pledged, that should be displayed, with no removal option. If they're on their supporter page, they should have the option to remove it (except when pledged). Elsewhere, they should see that it's on their wishlist. Everyone else should have add-to-wishlist option. (Needed ID for wishlist.js varies on search & supporter page.) {% endcomment %} {% if request.user.is_anonymous %}
Login to Add
{% else %}{% if request.user.id in supporters %}
Pledged!
{% else %}{% ifequal supporter request.user %} {% if wishlist %}
Un-list
{% else %} {% comment %} on the empty-wishlist slideshow {% endcomment %}
Add to My List
{% endif %} {% else %}{% if work in wishlist %}
On My List!
{% else %}
{% if on_search_page %} Add to My List {% else %} Add to My List {% endif %}
{% endif %}{% endifequal %}{% endif %}{% endif %}