2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview tabs {% if status == 'SUCCESSFUL' %}tabs-1{% else %}{% if status == 'ACTIVE' %}tabs-2{% else %}tabs-3{% endif %}{% endif %}">
|
|
|
|
<div class="listview book-list">
|
|
|
|
<div class="listview panelback side2">
|
|
|
|
<div class="greenpanel2">
|
|
|
|
<div class="unglued_white">
|
|
|
|
{% if work.first_pdf_url or work.first_epub_url %}
|
|
|
|
<b>AVAILABLE!</b>
|
2011-11-22 01:21:06 +00:00
|
|
|
{% else %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<b>{{ status }}</b>
|
|
|
|
{% if status == 'SUCCESSFUL' %}
|
|
|
|
<p><b>On:</b> {{ deadline|date:"M d, Y" }}</p>
|
|
|
|
<p><b>Raised:</b> {{ work.last_campaign.current_total }}</p>
|
|
|
|
{% else %}{% if status == 'ACTIVE' %}
|
|
|
|
<p><b>Until:</b> {{ deadline|date:"M d, Y" }}</p>
|
|
|
|
<p><b>Raised:</b> {{ work.last_campaign.current_total }}</p>
|
|
|
|
{% else %}{% if status == 'INITIALIZED' %}
|
|
|
|
<p>Campaign coming soon!</p>
|
|
|
|
{% else %}{% if status == 'SUSPENDED' %}
|
2011-12-13 21:24:39 +00:00
|
|
|
<p>This campaign had been suspended }.</p>
|
2011-12-01 02:05:19 +00:00
|
|
|
{% else %}{% if status == 'WITHDRAWN' %}
|
2011-12-13 21:24:39 +00:00
|
|
|
<p>This campaign was has been withdrawn.</p>
|
2011-12-01 02:05:19 +00:00
|
|
|
{% else %}{% if status == 'UNSUCCESSFUL' %}
|
|
|
|
<p>{{ deadline }}</p>
|
|
|
|
<p>Watch for a new campaign.</p>
|
|
|
|
{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if work.first_pdf_url or work.first_epub_url %}
|
|
|
|
<div class="read_itbutton">{% if work.first_epub_url %}<a href="{{ work.first_epub_url }}">{% else %}<a href="{{ work.first_pdf_url }}">{% endif %}Read it Now</a> </div>
|
|
|
|
{% else %}
|
|
|
|
<div class="Unglue_itbutton"><a href="#">Unglue it!</a> </div>
|
|
|
|
{% endif %}
|
|
|
|
{% ifequal supporter request.user %}
|
|
|
|
<div class="moreinfo remove-wishlist">
|
2011-12-03 20:20:28 +00:00
|
|
|
<div><a id="{{ work.id }}">Remove This</a></div>
|
2011-12-01 02:05:19 +00:00
|
|
|
</div>
|
|
|
|
{% else %}{% if request.user.is_anonymous %}
|
|
|
|
<div class="moreinfo create-account">
|
2011-12-06 19:40:29 +00:00
|
|
|
<span title="{% if work.id %}{% url work work.id %}{% else %}{% url googlebooks googlebooks_id %}{% endif %}">Login to Add</span>
|
2011-12-01 02:05:19 +00:00
|
|
|
</div>
|
2011-12-01 13:42:03 +00:00
|
|
|
{% else %}{% if work in request.user.wishlist.works.all %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="moreinfo on-wishlist">
|
2011-12-01 13:42:03 +00:00
|
|
|
<a href="#">On Wishlist!</a>
|
2011-12-01 02:05:19 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="moreinfo add-wishlist">
|
2011-12-03 00:26:41 +00:00
|
|
|
<span id="{{ googlebooks_id }}">Add to Wishlist</span>
|
2011-12-01 02:05:19 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}{% endif %}{% endifequal %}
|
|
|
|
<div class="white_text">
|
|
|
|
<p><a href="{% if work.id %}{% url work work.id %}{% else %}{% url googlebooks work.googlebooks_id %}{% endif %}">{{ work.title }}</a></p>
|
|
|
|
<p>{{ work.author }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="moreinfo">
|
|
|
|
<a href="{% if work.id %}{% url work work.id %}{% else %}{% url googlebooks work.googlebooks_id %}{% endif %}">More Info</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="listview panelfront side1 book-thumb">
|
2011-11-22 01:21:06 +00:00
|
|
|
<a href="#"><img src="{{ work.cover_image_thumbnail }}" alt="Book name" title="book name" /></a>
|
|
|
|
</div>
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 book-name">
|
2011-11-22 01:21:06 +00:00
|
|
|
<div class="title">
|
2011-12-06 19:40:29 +00:00
|
|
|
<a href="{% if work.id %}{% url work work.id %}{% else %}{% url googlebooks googlebooks_id %}{% endif %}">{{ work.title }}</a>
|
2011-11-22 01:21:06 +00:00
|
|
|
</div>
|
|
|
|
<div class="listview author {{ work.author }}">{{ work.author }}</div>
|
|
|
|
</div>
|
|
|
|
{% ifequal supporter request.user %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 remove-wishlist">
|
2011-12-03 20:20:28 +00:00
|
|
|
<span id="{{ work.id }}">Remove This</span>
|
2011-11-22 01:21:06 +00:00
|
|
|
</div>
|
|
|
|
{% else %}{% if request.user.is_anonymous %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 create-account">
|
2011-12-06 19:40:29 +00:00
|
|
|
<span title="{% if work.id %}{% url work work.id %}{% else %}{% url googlebooks googlebooks_id %}{% endif %}">Login to Add</span>
|
2011-11-22 01:21:06 +00:00
|
|
|
</div>
|
2011-12-01 13:42:03 +00:00
|
|
|
{% else %}{% if work in request.user.wishlist.works.all %}
|
|
|
|
<div class="listview panelfront side1 on-wishlist">
|
|
|
|
<span>On Your Wishlist!</span>
|
|
|
|
</div>
|
2011-11-22 01:21:06 +00:00
|
|
|
{% else %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 add-wishlist">
|
2011-12-03 00:26:41 +00:00
|
|
|
<span id="{{ googlebooks_id }}">Add to Wishlist</span>
|
2011-11-22 01:21:06 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}{% endif %}{% endifequal %}
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 booklist-status">
|
2011-11-22 01:21:06 +00:00
|
|
|
<span class="booklist-status-label">Status: </span><span class="booklist-status-text">{{ status }}</span>
|
|
|
|
</div>
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 icons">
|
2011-11-22 01:21:06 +00:00
|
|
|
<div class="booklist-status-img">
|
|
|
|
<img src="/static/images/images/icon-book-37by25-{{ work.percent_unglued }}.png" title="book list status" alt="book list status" />
|
|
|
|
</div>
|
|
|
|
<div class="booklist-status-label">{{ work.percent_unglued_number }}%</div>
|
2011-11-30 17:23:15 +00:00
|
|
|
<div class="right_add"><img src="/static/images/book-panel/add_gray.png" alt="Add"/></div>
|
2011-11-22 01:21:06 +00:00
|
|
|
</div>
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="listview panelfront side1 ebooks">
|
2011-11-23 17:28:59 +00:00
|
|
|
{% if work.first_epub_url %}
|
2011-11-22 01:21:06 +00:00
|
|
|
<span class="listview boolist-ebook">
|
2011-11-23 17:28:59 +00:00
|
|
|
<a href="{{ work.first_epub_url }}">epub</a>
|
2011-11-22 01:21:06 +00:00
|
|
|
</span>
|
|
|
|
{% endif %}
|
2011-11-23 17:28:59 +00:00
|
|
|
{% if work.first_pdf_url %}
|
2011-11-22 01:21:06 +00:00
|
|
|
<span class="listview boolist-ebook">
|
2011-11-23 17:28:59 +00:00
|
|
|
<a href="{{ work.first_pdf_url }}">pdf</a>
|
2011-11-22 01:21:06 +00:00
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2011-12-01 02:05:19 +00:00
|
|
|
<div class="unglue-this panelfront side1 none">
|
2011-11-22 01:21:06 +00:00
|
|
|
<div class="unglue-this-inner1">
|
|
|
|
<div class="unglue-this-inner2">
|
|
|
|
</div>
|
2011-09-12 03:44:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-11-23 17:28:59 +00:00
|
|
|
</div>
|