{% 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-wishlist
{% else %} {% comment %} on the empty-wishlist slideshow {% endcomment %}
Add to Wishlist
{% endif %} {% else %}{% if work in wishlist %}
On Wishlist!
{% else %}
{% if on_search_page %} Add to Wishlist {% else %} Add to Wishlist {% endif %}
{% endif %}{% endifequal %}{% endif %}{% endif %}