{% load humanize %} {% load purchased %} {% load lib_acqs %} {% load bookpanel %} {% with first_ebook=work.first_ebook supporters=work.last_campaign.supporters thumbnail=work.cover_image_thumbnail author=work.authors_short title=work.title last_campaign=work.last_campaign status=work.last_campaign.status deadline=work.last_campaign.deadline workid=work.id wishlist=request.user.wishlist.works.all %} {% purchased %}{% lib_acqs %}{% bookpanel %}
{{ author }}
until {{ borrowed.expires|date:"M d, Y" }}
{% elif borrowable %}{{ lib_acqs.count }}{% if lib_acqs.count == 1 %} copy{% else %} copies{% endif %}
${{ work.last_campaign.current_total|floatformat:0|intcomma }} of thanks
from {{ work.last_campaign.supporters_count }} ungluers
and {{ work.last_campaign.anon_count }} others
{% else %} UNGLUED!On: {{ deadline|date:"M d, Y" }}
Raised: {{ work.last_campaign.current_total|floatformat:0|intcomma }}
{% endif %}{{ author }}
Available in your library now!
{% elif lib_thanked %}Supported by your library!
{% else %}Available in your library on
{{ next_acq.refreshes|date:"M j, Y" }}
${{ work.last_campaign.current_total|floatformat:0|intcomma }} raised
${{ work.last_campaign.target|floatformat:0|intcomma }} needed
by {{ deadline|naturalday:"M d, Y" }}
{% elif work.last_campaign.type == 2 %} UNGLUE IT!${{ work.last_campaign.left|floatformat:0|intcomma }} needed
will unglue on
{{ work.last_campaign.cc_date|naturalday:"M d, Y" }}
{% elif work.last_campaign.type == 3 %} SAY THANKS!${{ work.last_campaign.current_total|floatformat:0|intcomma }} of thanks
from {{ work.last_campaign.supporters_count }} ungluers
and {{ work.last_campaign.anon_count }} others
{% else %} Never. {% endif %} {% endif %}{{ author }}
Campaign coming soon!
{% elif status == 'SUSPENDED' %}This campaign has been suspended.
See the FAQ for details.
{% elif status == 'WITHDRAWN' %}This campaign has been withdrawn.
See the FAQ for details.
{% elif status == 'UNSUCCESSFUL' %}{{ deadline }}
Watch for a new campaign.
{% endif %} {% include "book_panel_addbutton.html" %}{{ author }}
No campaign yet.
But if lots of ungluers fave this book, maybe there will be!
{% endif %}