2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
{% load url from future %}
2011-12-31 03:08:04 +00:00
{% load comments %}
2012-05-13 19:32:32 +00:00
{% load humanize %}
2013-10-18 17:33:47 +00:00
{% load purchased %}
2013-10-20 18:18:17 +00:00
{% load lib_acqs %}
2013-02-08 15:12:28 +00:00
{% block title %}—
2015-02-17 22:06:10 +00:00
{% if work.is_free %}
2016-03-28 13:54:57 +00:00
{{ work.title }} is a Free eBook. {% if work.first_pdf %}[PDF]{% endif %}{% if work.first_epub %}[EPUB, MOBI]{% endif %}
2013-02-08 15:12:28 +00:00
{% else %}
Help us make {{ work.title }} a Free eBook!
2014-03-12 16:54:32 +00:00
{% endif %}{% ifequal action 'editions' %} – All Editions{% endifequal %}
2013-02-08 15:12:28 +00:00
{% endblock %}
2011-12-07 17:05:31 +00:00
{% block extra_css %}
2013-05-24 18:54:05 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/campaign2.css" / >
2015-01-14 20:07:54 +00:00
{% if user.is_staff or user in work.last_campaign.managers.all %}
2015-12-14 16:52:41 +00:00
< link rel = "stylesheet" href = "/static/css/ui-lightness/jquery-ui-1.8.16.custom.css" type = "text/css" media = "screen" >
2015-01-14 20:07:54 +00:00
{{ kwform.media.css }}
{% endif %}
2011-12-07 17:05:31 +00:00
{% endblock %}
2011-11-19 15:51:51 +00:00
2012-09-19 16:08:27 +00:00
{% block extra_js %}
2012-03-08 02:47:40 +00:00
< script type = "text/javascript" src = "{{ jquery_ui_home }}" > < / script >
2011-12-07 17:05:31 +00:00
< script type = "text/javascript" src = "/static/js/wishlist.js" > < / script >
2011-11-19 15:51:51 +00:00
< script type = "text/javascript" src = "/static/js/tabs4.js" > < / script >
2014-11-07 19:27:49 +00:00
< script type = "text/javascript" src = "/static/js/widgets.js" > < / script >
2012-02-02 18:40:08 +00:00
< script type = "text/javascript" src = "/static/js/counter.js" > < / script >
2012-04-10 18:33:34 +00:00
< script type = "text/javascript" src = "/static/js/embed.js" > < / script >
2015-01-14 20:07:54 +00:00
{% if user.is_staff or user in work.last_campaign.managers.all %}
{{ kwform.media.js }}
{% endif %}
2013-04-24 18:26:23 +00:00
<!-- needed for DeGruyter seed description hack
makes template vars accessible in JS
-->
< script type = "text/javascript" >
var numWishers = {{ wishers }};
{% if request.user.id in work.last_campaign.supporters %}
var isSupporter = true;
{% else %}
var isSupporter = false;
{% endif %}
< / script >
2015-01-15 19:34:43 +00:00
2011-11-19 15:51:51 +00:00
{% endblock %}
2012-10-14 19:20:55 +00:00
{% block topsection %}
2013-01-03 18:18:26 +00:00
{% if work.last_campaign.status == 'ACTIVE' %}
{% if request.user in work.last_campaign.managers.all %}
2015-04-28 03:24:02 +00:00
< div class = "launch_top pale" > Hi, {{ request.user.username }}. Since you're a manager for this campaign, you can < a href = "{% url 'manage_campaign' id=work.last_campaign.id %}" > edit this campaign< / a > .< / div >
2013-01-03 18:18:26 +00:00
{% endif %}
{% else %}
2013-01-04 20:12:35 +00:00
{% if not work.user_with_rights %}
2013-01-03 18:18:26 +00:00
{% if request.user.rights_holder.all %}
2015-04-28 03:24:02 +00:00
< div class = "launch_top pale" > Hi, {{ request.user.username }}. Since you're an authorized Unglue.it rights holder, if you own the worldwide electronic rights to this work, you may claim it through the More... tab. Need help? Check out the < a href = "{% url 'rightsholders' %}" > rights holder tools page< / a > .< / div >
2013-01-03 18:18:26 +00:00
{% endif %}
{% else %}
2013-01-04 20:12:35 +00:00
{% if request.user == work.user_with_rights %}
2013-11-14 19:58:02 +00:00
{% ifnotequal work.last_campaign.status 'SUCCESSFUL' %}
2015-04-28 03:24:02 +00:00
< div class = "launch_top pale" > Hi, {{ request.user.username }}. Since you're a rights holder for this work, you can < a href = "{% url 'rightsholders' %}" > launch a campaign< / a > .< / div >
2013-11-14 19:58:02 +00:00
{% endifnotequal %}
2013-01-03 18:18:26 +00:00
{% endif %}
{% endif %}
2012-10-14 19:20:55 +00:00
{% endif %}
{% endblock %}
2013-10-18 17:33:47 +00:00
{% block content %}
{% purchased %}
2013-10-20 18:18:17 +00:00
{% lib_acqs %}
2011-11-28 16:38:31 +00:00
{% with work.last_campaign_status as status %}
2012-05-13 19:23:04 +00:00
{% with work.id as work_id %}
2014-04-16 20:15:19 +00:00
< div id = "main-container" itemscope itemtype = "http://schema.org/Book" >
2013-02-07 18:37:54 +00:00
< div class = "js-main" >
< div id = "js-leftcol" >
{% include "explore.html" %}
2011-11-19 15:51:51 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< div id = "js-maincol" >
< div class = "js-maincol-inner" >
2014-04-16 20:15:19 +00:00
< div id = "content-block" >
2013-03-12 02:39:48 +00:00
< div class = "book-detail" >
2014-10-29 19:18:32 +00:00
{% if work.uses_google_cover %}
2013-03-12 02:39:48 +00:00
< div id = "book-detail-img" >
< a href = "{{ work.googlebooks_url }}" >
< img src = "{{ work.cover_image_thumbnail }}" alt = "Find {{ work.title }} at Google Books" title = "Find {{ work.title }} at Google Books" width = "131" height = "192" / > < / a >
2011-12-19 07:10:35 +00:00
< / div >
{% else %}
2013-03-12 02:39:48 +00:00
< div id = "book-detail-img" >
2015-08-21 21:54:39 +00:00
< img itemprop = "image" src = "{{ work.cover_image_thumbnail }}" alt = "{{ work.title }}" title = "{{ work.title }}" width = "131" height = "192" / >
2011-12-19 07:10:35 +00:00
< / div >
2012-04-03 14:54:31 +00:00
{% endif %}
2013-03-12 02:39:48 +00:00
< div class = "book-detail-info" >
< div class = "layout" >
2013-03-19 01:50:22 +00:00
< h2 class = "book-name" itemprop = "name" > {{ work.title }}< / h2 >
< div >
2013-03-12 02:39:48 +00:00
< div class = "pubinfo" >
2014-01-18 02:37:19 +00:00
< h3 class = "book-author" >
2015-07-28 03:21:11 +00:00
< span itemprop = "author" > {{ work.relators.0.name }}< / span > {% ifequal work.authors.count 2 %}
and < span itemprop = "author" > {{ work.relators.1.name }}< / span >
{% endifequal %}{% if work.relators.count > 2 %}{% for author in work.relators %}{% if not forloop.first %}, < span itemprop = "author" > {{ author.name }}< / span > {% endif %}{% endfor %}
2014-01-18 02:37:19 +00:00
{% endif %}
< / h3 >
2013-03-27 16:22:30 +00:00
< h3 class = "book-year" >
{% if work.last_campaign.publisher %}
2015-04-28 03:24:02 +00:00
< span itemprop = "publisher" > < a href = "{% url 'bypubname_list' work.last_campaign.publisher.name.id %}" > {{ work.last_campaign.publisher }}< / a > < / span >
2013-03-27 16:22:30 +00:00
{% endif %}
2015-10-05 23:17:16 +00:00
< span itemprop = "datePublished" > {{ work.publication_date }}< / span >
2013-03-27 16:22:30 +00:00
< / h3 >
2013-02-21 20:10:01 +00:00
< / div >
< / div >
< / div >
2013-03-12 02:39:48 +00:00
{% ifequal status 'ACTIVE' %}
2014-02-11 16:37:39 +00:00
{% ifnotequal work.last_campaign.type 3 %}
< div class = "thermometer" title = "{{ work.percent_of_goal }}% of goal" >
< div class = "cover" style = "width: {{ cover_width }}%;" >
< / div >
< span > {{ work.percent_of_goal }}% of goal< / span >
2013-02-21 20:10:01 +00:00
< / div >
2014-02-11 16:37:39 +00:00
{% endifnotequal %}
2013-02-07 18:37:54 +00:00
< div class = "pledged-info noborder" >
2013-03-12 02:39:48 +00:00
< div class = "campaign-status-info" >
2013-08-14 03:47:55 +00:00
{% ifequal work.last_campaign.type 1 %}
< span > ${{ work.last_campaign.current_total|floatformat:0|intcomma }}< / span > pledged
2014-02-11 16:37:39 +00:00
{% endifequal %}
{% ifequal work.last_campaign.type 2 %}
2013-08-14 03:47:55 +00:00
current ungluing date:
{% endifequal %}
2014-02-11 16:37:39 +00:00
{% ifequal work.last_campaign.type 3 %}
< span > ${{ work.last_campaign.current_total|floatformat:0|intcomma }}< / span > of thanks from
{% endifequal %}
2013-03-12 02:39:48 +00:00
< / div >
2013-11-10 01:34:13 +00:00
< div class = "campaign-status-info explainer" >
2013-08-14 03:47:55 +00:00
{% ifequal work.last_campaign.type 1 %}
2013-03-12 02:39:48 +00:00
< span > ${{ work.last_campaign.target|floatformat:0|intcomma }}< / span > goal
2014-02-11 16:37:39 +00:00
{% endifequal %}
{% ifequal work.last_campaign.type 2 %}
2013-11-10 01:34:13 +00:00
< span class = "current_cc_date " > {{ work.last_campaign.cc_date|date:"M j, Y" }}< / span >
< span class = "explanation" > After {{ work.last_campaign.cc_date|date:"M j, Y" }} this book will be available for free to anyone, anywhere. Every purchase before then brings that date closer.< / span >
2014-02-11 16:37:39 +00:00
{% endifequal %}
{% ifnotequal work.last_campaign.type 3 %}
2013-03-12 02:39:48 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< div class = "campaign-status-info" >
2014-02-11 16:37:39 +00:00
{% endifnotequal %}
2013-02-07 18:37:54 +00:00
{% if work.last_campaign.supporters_count == 1 %}
< span > 1< / span > ungluer
{% else %}
2013-03-12 18:48:20 +00:00
< span > {{ work.last_campaign.supporters_count }}< / span > ungluers
2013-02-07 18:37:54 +00:00
{% endif %}
2014-02-20 21:31:13 +00:00
{% ifequal work.last_campaign.type 3 %}
< br / >
{% if work.last_campaign.anon_count == 1 %}
< span > 1< / span > other
{% else %}
< span > {{ work.last_campaign.anon_count }}< / span > others
{% endif %}
{% endifequal %}
2013-02-07 18:37:54 +00:00
< / div >
2013-10-18 17:33:47 +00:00
{% ifequal work.last_campaign.type 2 %}
< div class = "campaign-status-info" >
{% if work.lib_acqs.count == 1 %}
< span > 1< / span > copy in a library
{% else %}
< span > {{ work.lib_acqs.count }}< / span > in libraries
{% endif %}
< / div >
{% endifequal %}
2014-02-11 16:37:39 +00:00
{% ifnotequal work.last_campaign.type 3 %}
< div class = "campaign-status-info explainer" >
{% ifequal work.last_campaign.type 1 %}
< span > {{ work.last_campaign.countdown }}< / span > to go
{% else %}
< span > ${{ work.last_campaign.left|floatformat:0|intcomma }}< / span > to go
< span class = "explanation" > ${{ work.last_campaign.left|floatformat:0|intcomma }} is the amount it would take to make this ebook free to the world tomorrow.< / span >
{% endifequal %}
< / div >
{% endifnotequal %}
2013-03-12 02:39:48 +00:00
< / div >
2012-06-21 14:49:41 +00:00
{% else %}
2013-03-12 02:39:48 +00:00
{% ifequal status 'SUCCESSFUL' %}
< div class = "thermometer successful" >
This campaign succeeded on {{ work.last_campaign.success_date|date:"M j, Y" }}.
2012-09-10 18:37:37 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< div class = "pledged-info noborder" >
< div class = "campaign-status-info" >
{% if work.last_campaign.supporters_count == 1 %}
< span > 1< / span > ungluer
{% else %}
2013-03-12 18:48:20 +00:00
< span > {{ work.last_campaign.supporters_count }}< / span > ungluers
2013-03-12 02:39:48 +00:00
{% endif %}
< / div >
< div class = "campaign-status-info" >
2013-11-14 19:58:02 +00:00
< span > ${{ work.last_campaign.current_total|floatformat:0|intcomma }}< / span > raised
2013-03-12 02:39:48 +00:00
< / div >
< div class = "campaign-status-info" >
< span > ${{ work.last_campaign.target|floatformat:0|intcomma }}< / span > goal
< / div >
< div class = "campaign-status-info" >
< span > Unglued!< / span >
< / div >
2013-02-07 18:37:54 +00:00
< / div >
2013-03-12 02:39:48 +00:00
{% endifequal %}
< div class = "pledged-info" >
{% if wishers == 1 %}
1 Ungluer has
{% else %}
{{ wishers }} Ungluers have
2014-02-20 04:16:28 +00:00
{% endif %} Faved this Work
2013-02-07 18:37:54 +00:00
< / div >
{% endifequal %}
2013-03-12 02:39:48 +00:00
< div class = "find-book" >
< label > Learn more at...< / label >
< div class = "find-link" >
{% if work.googlebooks_id %}
< a id = "find-google" href = "{{ work.googlebooks_url }}" > < img src = "/static/images/supporter_icons/googlebooks_square.png" title = "Find on Google Books" alt = "Find on Google Books" / > < / a >
2013-02-07 18:37:54 +00:00
{% endif %}
2013-03-12 02:39:48 +00:00
{% if work.first_oclc %}
< a rel = "nofollow" id = "find-oclc" href = "http://www.worldcat.org/oclc/{{ work.first_oclc }}" > < img src = "/static/images/supporter_icons/worldcat_square.png" title = "Find on Worldcat" alt = "Find on Worldcat" / > < / a >
{% endif %}
2015-04-28 03:24:02 +00:00
< a rel = "nofollow" class = "find-openlibrary" href = "{% url 'work_openlibrary' work_id %}" > < img src = "/static/images/supporter_icons/openlibrary_square.png" title = "Find on OpenLibrary" alt = "Find on OpenLibrary" / > < / a >
< a rel = "nofollow" class = "find-goodreads" href = "{% url 'work_goodreads' work_id %}" > < img src = "/static/images/supporter_icons/goodreads_square.png" title = "Find on GoodReads" alt = "Find on GoodReads" / > < / a >
< a rel = "nofollow" class = "find-librarything" href = "{% url 'work_librarything' work_id %}" > < img src = "/static/images/supporter_icons/librarything_square.png" title = "Find on LibraryThing" alt = "Find on LibraryThing" / > < / a >
2012-09-10 18:37:37 +00:00
< / div >
2013-03-19 01:50:22 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< div class = "btn_wishlist" id = "wishlist_actions" >
2013-03-12 18:48:20 +00:00
{% if request.user.is_anonymous %}
< div class = "create-account" >
2015-04-28 03:24:02 +00:00
< span title = "{% url 'work' work_id %}" > Login to Fave< / span >
2013-03-12 18:48:20 +00:00
< / div >
{% else %}{% if request.user.id in work.last_campaign.supporters %}
2013-03-12 02:39:48 +00:00
< div class = "add-wishlist" >
2014-02-20 04:16:28 +00:00
< span class = "on-wishlist" > Faved!< / span >
2013-02-07 18:37:54 +00:00
< / div >
2013-03-12 18:48:20 +00:00
{% else %}{% if work in request.user.wishlist.works.all %}
< div class = "remove-wishlist-workpage" >
2014-02-20 04:16:28 +00:00
< span id = "w{{ work_id }}" > Remove from My Faves< / span >
2013-03-12 18:48:20 +00:00
< / div >
2013-03-12 02:39:48 +00:00
{% else %}
2013-03-12 18:48:20 +00:00
< div class = "add-wishlist" >
2014-02-20 04:16:28 +00:00
< span class = "work_id" id = "w{{ work_id }}" > Add to My Faves< / span >
2013-03-12 18:48:20 +00:00
< / div >
{% endif %}{% endif %}{% endif %}
2012-02-28 22:28:33 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< / div >
2011-12-07 17:05:31 +00:00
< / div >
2013-03-12 02:39:48 +00:00
{% get_comment_count for work as comment_count %}
2014-03-11 21:34:27 +00:00
{% ifequal action 'editions' %}
< div class = "content-block-heading" id = "tabs" >
< ul class = "tabs" >
2015-04-28 03:24:02 +00:00
< li class = "tabs1" > < a href = "{% url 'work' work.id %}?tab=1" > {% if status == 'ACTIVE' %}Campaign{% else %}Description{% endif %}< / a > < / li >
< li class = "tabs2" > < a href = "{% url 'work' work.id %}?tab=2" > Comments {% if comment_count > 0 %}({{ comment_count }}){% endif %}< / a > < / li >
< li class = "tabs3" id = "supporters" > < a href = "{% url 'work' work.id %}?tab=3" > Ungluers {% if wishers > 0 %}< br / > ({{ wishers }}){% endif %}< / a > < / li >
2014-03-11 21:34:27 +00:00
< li class = "tabs4 active" > < a href = "#" > Editions< / a > < / li >
< / ul >
< / div >
{% else %}
2013-03-12 02:39:48 +00:00
< div class = "content-block-heading" id = "tabs" >
< ul class = "tabs" >
< li class = "tabs1 {% if activetab == '1' %}active{% endif %}" > < a href = "#" > {% if status == 'ACTIVE' %}Campaign{% else %}Description{% endif %}< / a > < / li >
< li class = "tabs2 {% if activetab == '2' %}active{% endif %}" > < a href = "#" > Comments {% if comment_count > 0 %}({{ comment_count }}){% endif %}< / a > < / li >
< li class = "tabs3 {% if activetab == '3' %}active{% endif %}" id = "supporters" > < a href = "#" > Ungluers {% if wishers > 0 %}< br / > ({{ wishers }}){% endif %}< / a > < / li >
2013-08-05 21:40:42 +00:00
< li class = "tabs4 {% if activetab == '4' %}active{% endif %}" > < a href = "#" > More...< / a > < / li >
2013-03-12 19:59:24 +00:00
< / ul >
2013-03-12 02:39:48 +00:00
< / div >
2014-03-11 21:34:27 +00:00
{% endifequal %}
2013-03-12 02:39:48 +00:00
< div id = "content-block-content" >
< div id = "tabs-1" class = "tabs {% if activetab == '1' %}active{% endif %}" >
< div class = "tabs-content" >
2014-02-11 16:37:39 +00:00
< div itemprop = "description" >
{% if status == 'ACTIVE' %}
{% if work.last_campaign.type != 3 %}
{{ work.last_campaign.description|safe }}
{% else %}
{{ work.description|safe }}
{% endif %}
2013-02-07 18:37:54 +00:00
{% else %}
2015-01-19 22:30:49 +00:00
{% if work.description %}
{{ work.description|safe }}
{% else %}
{{ work.last_campaign.description|safe }}
{% endif %}
2012-09-10 18:37:37 +00:00
{% endif %}
2014-02-11 16:37:39 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< div id = "tabs-2" class = "tabs {% if activetab == '2' %}active{% endif %}" >
2014-10-29 19:41:51 +00:00
< h3 > Why {% if work.ebooks.all %}read{% else %}unglue{% endif %} this book? Have your say.< / h3 >
2013-03-12 02:39:48 +00:00
< div class = "tabs-content" >
2013-03-12 19:59:24 +00:00
{% render_comment_list for work %}
{% if user.is_authenticated %}
{% render_comment_form for work %}
{% else %}
2015-04-28 03:24:02 +00:00
< p > You must be < a href = "{% url 'superlogin' %}?next={{ request.get_full_path|urlencode }}" > logged in< / a > to comment.< / p >
2013-03-12 19:59:24 +00:00
{% endif %}
2013-03-12 02:39:48 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< div id = "tabs-3" class = "tabs {% if activetab == '3' %}active{% endif %}" >
< div class = "tabs-content" >
2013-03-12 19:59:24 +00:00
{% if request.user.is_staff or request.user in work.last_campaign.managers.all %}
< form id = "contact_form" method = "POST" action = "#" >
{% csrf_token %}
< input type = "hidden" name = "work" value = "{{ work.id }}" / >
{% for wish in work.wishes.all reversed %}
{% with wish.wishlist.user as supporter %}
< div class = "work_supporter_wide" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'supporter' supporter %}" >
2013-03-19 02:07:19 +00:00
< span class = "work_supporter_avatar" >
2013-03-19 18:38:09 +00:00
< img class = "user-avatar" src = "{{ supporter.profile.avatar_url }}" height = "50" width = "50" alt = "Avatar for {{ supporter }}" title = "{{ supporter }}" / >
2013-03-19 02:07:19 +00:00
< / span >
2013-03-12 19:59:24 +00:00
< / a >
< div class = "show_supporter_contact_form" >
< img src = "/static/images/icons/email.png" title = "contact supporter" / >
< / div >
< div class = "info_for_managers" >
{{ supporter }}< br / >
Wished: {{ wish.created }}< br / >
{% if supporter.id in work.last_campaign.supporters %}Pledged!< /br />{% endif %}
{% if supporter in work.last_campaign.ungluers.all %}Supported!< /br />{% endif %}
< / div >
< / div >
< div class = "supporter_contact_form" > < / div >
< input class = "supporter_contact_form" type = "submit" name = "msg_{{supporter.id}}" value = "Send Message to {{ supporter.username }}" / >
{% endwith %}
{% endfor %}
2012-09-10 18:37:37 +00:00
< / form >
2013-03-12 19:59:24 +00:00
{% else %}
{% for wish in work.wishes.all reversed %}
2013-03-12 02:39:48 +00:00
{% with wish.wishlist.user as supporter %}
2013-03-19 01:50:22 +00:00
< div class = "work_supporter_nocomment" itemscope itemtype = "http://schema.org/Person" >
2015-04-28 03:24:02 +00:00
< a itemprop = "url" href = "{% url 'supporter' supporter %}" >
2013-03-19 02:07:19 +00:00
< span class = "work_supporter_avatar" >
2013-03-19 18:38:09 +00:00
< img class = "user-avatar" src = "{{ supporter.profile.avatar_url }}" height = "50" width = "50" alt = "Avatar for {{ supporter }}" title = "{{ supporter }}" / >
2013-03-19 02:07:19 +00:00
< / span >
< span class = "work_supporter_name" > {{ supporter }}< / span >
2013-03-12 02:39:48 +00:00
< / a >
< / div >
{% endwith %}
2013-03-12 19:59:24 +00:00
{% endfor %}
{% endif %}
2013-03-12 02:39:48 +00:00
< / div >
2012-09-10 18:37:37 +00:00
< / div >
2013-03-12 02:39:48 +00:00
< div id = "tabs-4" class = "tabs {% if activetab == '4' %}active{% endif %}" >
< div class = "tabs-content" >
2014-03-11 21:34:27 +00:00
{% ifequal action 'display' %}
{% if status == 'ACTIVE' %}
{% ifequal work.last_campaign.type 1 %}
< h3 class = "tabcontent-title" > A campaign is running to unglue < i > {{work.title}}< / i > !< / h3 >
< p > The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
{{ claim.rights_holder.rights_holder_name }}
{% endif %}
{% endfor %}
, has agreed to release < i > {{work.title}}< / i > to the world as a Creative Commons licensed ebook (< a href = "{{ work.last_campaign.license_url }}" > {{ work.last_campaign.license }}< / a > ) if ungluers can join together to raise ${{ work.last_campaign.target|floatformat:0|intcomma }} by {{ work.last_campaign.deadline }}.
You can help!< / p >
{% endifequal %}
{% ifequal work.last_campaign.type 2 %}
< h3 class = "tabcontent-title" > A Buy-to-Unglue Campaign is running to unglue < i > {{work.title}}< / i > !< / h3 >
< p > The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
{{ claim.rights_holder.rights_holder_name }}
{% endif %}
{% endfor %}
, has agreed to release < i > {{work.title}}< / i > to the world as a Creative Commons licensed ebook (< a href = "{{ work.last_campaign.license_url }}" > {{ work.last_campaign.license }}< / a > ) on {{ work.last_campaign.cc_date }}. For every copy that ungluers purchase, that date gets sooner. ${{ work.last_campaign.left|floatformat:0|intcomma }} of sales will unglue the book < i > TODAY< / i > .
You can help!< / p >
{% endifequal %}
{% ifequal work.last_campaign.type 3 %}
< h3 class = "tabcontent-title" > A Thanks-for-Ungluing Campaign is running to reward the creators of < i > {{work.title}}< / i > !< / h3 >
< p > The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
{{ claim.rights_holder.rights_holder_name }}
{% endif %}
{% endfor %}
, has released < i > {{work.title}}< / i > to the world as a Creative Commons licensed ebook (< a href = "{{ work.last_campaign.license_url }}" > {{ work.last_campaign.license }}< / a > ) .
You can help us say "Thank You!" so that other creators will do the same.< / p >
{% endifequal %}
< h4 > Campaign details: the fine print< / h4 >
{{ work.last_campaign.details|safe }}
{% endif %}
{% if status == 'SUCCESSFUL' %}
< h3 class = "tabcontent-title" > A campaign has succeeded to unglue < i > {{work.title}}< / i > !< / h3 >
2014-03-03 21:51:33 +00:00
< p > The rights holder, {% for claim in work.claim.all %}
{% if claim.status == 'active' %}
{{ claim.rights_holder.rights_holder_name }}
{% endif %}
{% endfor %}
2014-03-11 21:34:27 +00:00
, has agreed to release < i > {{work.title}}< / i > to the world as a Creative Commons licensed ebook (< a href = "{{ work.last_campaign.license_url }}" > {{ work.last_campaign.license }}< / a > ) thanks to the efforts of ungluers like you.< / p >
< h4 > Campaign details: the fine print< / h4 >
{{ work.last_campaign.details|safe }}
{% endif %}
{% if status != 'ACTIVE' and status != 'SUCCESSFUL' %}
< h4 > Rights Information < / h4 >
{% if claimstatus == 'one_active' %}
< p > This work has been claimed by {{ rights_holder_name }}.< / p >
2013-02-07 18:37:54 +00:00
{% else %}
2014-03-11 21:34:27 +00:00
{% if claimstatus == 'disputed' %}
< p > Rights claims are pending.< / p >
2013-02-07 18:37:54 +00:00
{% else %}
2014-03-11 21:34:27 +00:00
{% if claimstatus == 'one_pending' %}
< p > A claim for this work by {{ rights_holder_name }} is pending.< / p >
{% else %}
{% if request.user.rights_holder.all.count %}
Is this work yours? Claim it: < br / > < br / >
2013-03-12 19:59:24 +00:00
2015-04-28 03:24:02 +00:00
< form method = "GET" action = "{% url 'claim' %}" >
2014-03-11 21:34:27 +00:00
{% csrf_token %}
{{ claimform.user }}
{{ claimform.work }}
{{ claimform.rights_holder }}
< input type = "submit" name = "submit" value = "Claim" / >
< / form > < br / >
2015-01-19 22:21:16 +00:00
{% else %}
2015-04-28 03:24:02 +00:00
Are you the author or publisher of this work? If so, you can claim it as yours by < a href = "{% url 'rightsholders' %}" > registering as an Unglue.it rights holder< / a > .
2014-03-11 21:34:27 +00:00
{% endif %}
2013-02-07 18:37:54 +00:00
{% endif %}
{% endif %}
2012-09-10 18:37:37 +00:00
{% endif %}
2013-02-07 18:37:54 +00:00
{% endif %}
2015-02-17 22:06:10 +00:00
{% if work.is_free %}
2015-01-19 22:21:16 +00:00
< h4 > Downloads< / h4 >
2014-03-11 21:34:27 +00:00
< div class = "pledged-info" >
2014-03-13 19:22:03 +00:00
This work has been downloaded {{ work.download_count }} times via unglue.it ebook links.
2015-01-19 22:21:16 +00:00
< ol >
{% for ebook in work.ebooks.all %}
< li > {{ ebook.download_count }} - {{ ebook.format }} ({{ ebook.rights }}) at {{ ebook.provider }}< / li >
{% endfor %}
< / ol >
2014-03-11 21:34:27 +00:00
< / div >
2014-07-01 18:09:21 +00:00
{% if user.is_staff %}
< p >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'feature' work.id %}" > Feature this work today.< / a >
2014-07-01 18:09:21 +00:00
< / p >
{% endif %}
2014-03-11 21:34:27 +00:00
{% endif %}
{% if user.is_staff %}
< h4 > Related Works< / h4 >
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'merge' work_id %}" > Merge other works into this one< / a > < / div >
2014-03-11 21:34:27 +00:00
{% endif %}
2015-01-16 13:57:08 +00:00
< h4 > Keywords< / h4 >
2014-03-11 21:34:27 +00:00
{% if work.subjects.all.count > 0 %}
2015-01-15 19:34:43 +00:00
< ul id = "kw_list" >
2014-03-11 21:34:27 +00:00
{% for subject in work.subjects.all %}
2015-01-13 01:24:32 +00:00
< li itemprop = "keywords" > {{ subject.name }}
{% if user.is_staff or user in work.last_campaign.managers.all %}
< span class = "deletebutton" data = "{{ subject.name }}" > x< / span >
{% endif %}
< / li >
2014-03-11 21:34:27 +00:00
{% endfor %}
< / ul >
2015-01-16 13:57:08 +00:00
{% else %}
No keywords yet.
< ul id = "kw_list" > < / ul >
{% endif %}
{% if user.is_staff or user in work.last_campaign.managers.all %}
< form method = "POST" id = "kw_add_form" > {% csrf_token %}
{{ kwform.add_kw }}< input type = "hidden" name = "kw_add" value = "true" > < input type = "submit" name = "kw_add_fake" value = "add keyword" id = "kw_add_form_submit" / >
< / form >
2014-03-11 21:34:27 +00:00
{% endif %}
{% endifequal %}
2013-03-12 02:39:48 +00:00
< h4 > Editions< / h4 >
2014-03-11 21:34:27 +00:00
{% if alert %}
< div class = "yikes" > < br / > {{ alert }}< / div >
{% endif %}
2014-03-13 19:22:03 +00:00
{% if user.is_staff or user in work.last_campaign.managers.all %}
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'new_edition' work_id edition.id %}" > Create a new edition for this work< / a > < br / > < br / > < / div >
2013-03-12 02:39:48 +00:00
{% endif %}
2013-02-07 18:37:54 +00:00
2014-03-11 21:34:27 +00:00
{% ifequal action 'editions' %}
{% include 'split.html' %}
{% else %}
{% with work.preferred_edition as edition %}
{% include 'edition_display.html' %}
{% endwith %}
{% if not campaign %}
{% for edition in editions %}
{% ifnotequal edition work.preferred_edition %}
{% include 'edition_display.html' %}
2013-03-12 02:39:48 +00:00
{% endifnotequal %}
2014-03-11 21:34:27 +00:00
{% endfor %}
{% endif %}
2015-04-28 03:24:02 +00:00
< div > < a href = "{% url 'work_editions' work_id %}" > All editions for this work.< / a > < / div >
2014-03-11 21:34:27 +00:00
{% endifequal %}
2013-03-12 02:39:48 +00:00
< / div >
2012-09-10 18:37:37 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< / div >
2013-03-12 19:59:24 +00:00
< / div >
2011-11-19 15:51:51 +00:00
< / div >
2013-02-07 18:37:54 +00:00
< / div >
< div id = "js-rightcol" >
< div class = "clearfix" >
{% if status == 'ACTIVE' %}
2013-06-27 17:10:33 +00:00
{% if work.last_campaign.type == 1 %}
2013-02-07 18:37:54 +00:00
{% if pledged %}
2015-04-28 03:24:02 +00:00
< div class = "btn_support modify" > < form action = "{% url 'pledge_modify' work_id %}" method = "get" > < input type = "submit" value = "Modify Pledge" / > < / form > < / div >
2013-01-16 16:13:23 +00:00
{% else %}
2015-04-28 03:24:02 +00:00
< div class = "btn_support" > < form action = "{% url 'pledge' work_id %}" method = "get" > < input type = "submit" value = "Pledge" / > < / form > < / div >
2013-02-07 18:37:54 +00:00
{% endif %}
2014-02-11 16:37:39 +00:00
{% else %}{% if work.last_campaign.type == 3 %}
< div class = "btn_support" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'download' work_id %}{% if action == 'preview' %}?testmode=1{% endif %}" class = "hijax" > < span > Download< / span > < / a >
2014-02-11 16:37:39 +00:00
< / div >
< div style = "text-align: center;" > ... and thank the creators!< / div >
2013-06-27 17:10:33 +00:00
{% else %}
2013-10-18 17:33:47 +00:00
{% if license_is_active %}
2013-06-27 17:10:33 +00:00
< div class = "btn_support" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'download_purchased' work_id %}" class = "hijax" > < span > Download< / span > < / a >
2013-06-27 17:10:33 +00:00
< / div >
2013-10-18 17:33:47 +00:00
{% else %}{% if borrowable %}
2015-04-28 03:24:02 +00:00
< div class = "btn_support" > < form action = "{% url 'borrow' work_id %}" method = "get" > < input type = "submit" value = "Borrow" / > < / form > < / div >
2013-06-27 17:10:33 +00:00
{% else %}
2015-04-28 03:24:02 +00:00
< div class = "btn_support" > < form action = "{% url 'purchase' work_id %}" method = "get" > < input type = "submit" value = "{% if next_acq %}{% if on_hold %}On Hold{% else %}Reserve{% endif %}{% else %}Purchase{% endif %}" / > < / form > < / div >
2013-10-18 17:33:47 +00:00
{% endif %}{% endif %}
2014-02-11 16:37:39 +00:00
{% endif %}{% endif %}
2013-02-07 18:37:54 +00:00
{% else %}
2015-02-17 22:06:10 +00:00
{% if work.is_free %}
2013-02-07 18:37:54 +00:00
< div class = "btn_support" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'download' work_id %}" class = "hijax" > < span > Download< / span > < / a >
2013-02-07 18:37:54 +00:00
< / div >
2013-01-16 16:13:23 +00:00
{% endif %}
2013-02-07 18:37:54 +00:00
{% endif %}
2011-11-19 15:51:51 +00:00
< / div >
2013-02-10 00:21:04 +00:00
< br / >
2013-02-07 18:37:54 +00:00
< div class = "js-rightcol-pad rounded" >
2013-03-27 16:22:30 +00:00
{% ifequal status 'ACTIVE' %}{% if work.last_campaign.email %}
< div class = "jsmodule" >
< h3 class = "jsmod-title" > < span > Ask Questions< / span > < / h3 >
< div class = "jsmod-content" >
< ul class = "social menu" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'ask_rh' work.last_campaign.id %}" > < li class = "email" > < span > Email the Rights Holder< / span > < / li > < / a >
2013-03-27 16:22:30 +00:00
< / ul >
< / div >
< / div >
{% endif %}{% endifequal %}
2012-10-24 15:34:22 +00:00
< div class = "jsmodule" >
2013-02-07 18:37:54 +00:00
< h3 class = "jsmod-title" > < span > Share< / span > < / h3 >
2012-10-24 15:34:22 +00:00
< div class = "jsmod-content" >
2013-02-07 18:37:54 +00:00
< ul class = "social menu" >
< a href = "https://www.facebook.com/sharer.php?u={{request.build_absolute_uri|urlencode:" " } } " > < li class = "facebook first" > < span > Facebook< / span > < / li > < / a >
2015-02-17 22:06:10 +00:00
{% if work.is_free %}
2013-02-07 18:37:54 +00:00
< a href = "https://twitter.com/intent/tweet?url={{request.build_absolute_uri|urlencode:" " } } & amp ; text = I%27m%20enjoying%20{{ work . title | urlencode } } % 2C % 20a % 20free % 2C % 20DRM % 2Dfree % 20ebook % 2E % 20You % 20can % 20too % 21 " > < li class = "twitter" > < span > Twitter< / span > < / li > < / a >
2012-10-24 15:34:22 +00:00
{% else %}
2013-02-07 18:37:54 +00:00
{% ifequal status 'SUCCESSFUL' %}
< a href = "https://twitter.com/intent/tweet?url={{request.build_absolute_uri|urlencode:" " } } & amp ; text = I%27m%20looking%20forward%20to the % 20free % 2C % 20non % 2DDRM % 20ebook % 20of % 20 { { work . title | urlencode } } % 2E % 20You % 20can % 20too % 21 " > < li class = "twitter" > < span > Twitter< / span > < / li > < / a >
{% else %}
< a href = "https://twitter.com/intent/tweet?url={{request.build_absolute_uri|urlencode:" " } } & amp ; text = I%27m%20ungluing%20{{ work . title | urlencode } } % 20at % 20 % 40unglueit . % 20Join % 20me % 21 " > < li class = "twitter" > < span > Twitter< / span > < / li > < / a >
{% endifequal %}
{% endif %}
2015-04-28 03:24:02 +00:00
{% if request.user.is_authenticated %}< a href = "{% url 'emailshare' '' %}?next={{request.build_absolute_uri|urlencode:" " } } " > < li class = "email" > < span > Email< / span > < / li > < / a > {% endif %}
2013-02-07 18:37:54 +00:00
< a href = "#" id = "embed" > < li class = "embed" > < span > Embed< / span > < / li > < / a >
< / ul >
< div id = "widgetcode" >
2015-02-18 18:09:43 +00:00
Copy/paste this into your site:< br / > < textarea rows = "7" cols = "22" > < iframe src="https://{{request.META.HTTP_HOST}}/api/widget/{{work.id}}/" width="152" height="325" frameborder="0"> < /iframe> < / textarea > < / div >
2013-02-07 18:37:54 +00:00
< / div >
< / div >
{% if status == 'ACTIVE' %}
2013-06-27 17:10:33 +00:00
< div class = "jsmodule" >
2013-02-07 18:37:54 +00:00
{% if premiums %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}" > < h3 class = "jsmod-title" > < span > Premiums< / span > < / h3 > < / a >
2013-02-07 18:37:54 +00:00
< div class = "jsmod-content" >
< ul class = "support menu" >
{% if pledged %}
{% for premium in premiums %}
{% if premium.limit == 0 or premium.limit > premium.premium_count %}
< li class = "{% if forloop.first %}first{% else %}{% if forloop.last %}last{% endif %}{% endif %}" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge_modify' work_id %}?premium_id={{premium.id}}" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > {% if premium.amount %}${{ premium.amount|floatformat:0|intcomma }}{% else %}Any amount{% endif %}< / span > {% if pledged.0.premium == premium %}< div class = "you_pledged" > Yours!< / div > {% endif %}
< span class = "menu-item-desc" > {{ premium.description }}< / span >
{% ifnotequal premium.limit 0 %}< br / > Only {{ premium.premium_remaining }} remaining! {% endifnotequal %}
< / a > < / li >
{% endif %}
{% endfor %}
{% else %}
{% for premium in premiums %}
{% if premium.limit == 0 or premium.limit > premium.premium_count %}
< li class = "{% if forloop.first %}first{% else %}{% if forloop.last %}last{% endif %}{% endif %}" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}?premium_id={{premium.id}}" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > ${{ premium.amount|floatformat:0|intcomma }}< / span >
< span class = "menu-item-desc" > {{ premium.description }}< / span >
{% ifnotequal premium.limit 0 %}< br / > Only {{ premium.premium_remaining }} remaining! {% endifnotequal %}
< / a > < / li >
{% endif %}
{% endfor %}
{% endif %}
< / ul >
< / div >
{% endif %}
2013-06-27 17:10:33 +00:00
{% ifequal work.last_campaign.type 1 %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}" > < h3 class = "jsmod-title" > < span > Acknowledgements< / span > < / h3 > < / a >
2013-02-07 18:37:54 +00:00
< div class = "jsmod-content" >
In addition to any premiums you're eligible for, you'll automatically be acknowledged in the unglued ebook as follows:
< ul class = "support menu" >
{% if pledged %}
{% with pledged.0.amount as amount %}
< li class = "first" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge_modify' work_id %}?preapproval_amount=1" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > Any amount< / span > {% if amount < 25 % } < div class = "you_pledged" > Yours!< / div > {% endif %}
< span class = "menu-item-desc" > The unglued ebook, free for you to read and share.< / span >
< / a >
< / li >
< li >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge_modify' work_id %}?preapproval_amount=25" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $25 and up< / span > {% if amount >= 25 and amount < 50 % } < div class = "you_pledged" > Yours!< / div > {% endif %}
< span class = "menu-item-desc" > Your name in the acknowledgements section of the unglued ebook under "Supporters".< / span >
< / a >
< / li >
< li >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge_modify' work_id %}?preapproval_amount=50" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $50 and up< / span > {% if amount >= 50 and amount < 100 % } < div class = "you_pledged" > Yours!< / div > {% endif %}
< span class = "menu-item-desc" > Your name & profile link in the acknowledgements section of the unglued ebook under "Benefactors".< / span >
< / a >
< / li >
< li class = "last" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge_modify' work_id %}?preapproval_amount=100" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $100 and up< / span > {% if amount >= 100 %}< div class = "you_pledged" > Yours!< / div > {% endif %}
< span class = "menu-item-desc" > Your name, profile link, & a dedication of your choice in the acknowledgements section of the unglued ebook under "Bibliophiles".< / span >
< / a >
< / li >
{% endwith %}
{% else %}
< li class = "first" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}?preapproval_amount=1" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > Any amount< / span >
< span class = "menu-item-desc" > The unglued ebook, free for you to read and share.< / span >
< / a >
< / li >
< li >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}?preapproval_amount=25" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $25 and up< / span >
< span class = "menu-item-desc" > Your name in the acknowledgements section of the unglued ebook under "Supporters".< / span >
< / a >
< / li >
< li >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}?preapproval_amount=50" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $50 and up< / span >
< span class = "menu-item-desc" > Your name & profile link in the acknowledgements section of the unglued ebook under "Benefactors".< / span >
< / a >
< / li >
< li class = "last" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'pledge' work_id %}?preapproval_amount=100" >
2013-02-07 18:37:54 +00:00
< span class = "menu-item-price" > $100 and up< / span >
< span class = "menu-item-desc" > Your name, profile link, & a dedication of your choice in the acknowledgements section of the unglued ebook under "Bibliophiles".< / span >
< / a >
< / li >
2012-10-24 15:34:22 +00:00
{% endif %}
2013-02-07 18:37:54 +00:00
< / ul >
< / div >
2014-02-11 16:37:39 +00:00
{% endifequal %}
{% ifequal work.last_campaign.type 2 %}
2013-10-11 21:50:54 +00:00
{% if lib_licenses.available %}
< h3 class = "jsmod-title" > < span > Borrow< / span > < / h3 >
< div class = "jsmod-content" >
< ul class = "support menu" >
{% for lib_license in lib_licenses.all %}
2013-06-27 17:10:33 +00:00
< li class = "{% if forloop.first %}first{% else %}{% if forloop.last %}last{% endif %}{% endif %}" >
2013-10-11 21:50:54 +00:00
< a href = "???" > Borrow!< / a >
< / li >
2013-06-27 17:10:33 +00:00
{% endfor %}
2013-10-11 21:50:54 +00:00
< / ul >
< / div >
{% endif %}
< h3 class = "jsmod-title" > < span > Buy for Yourself< / span > < / h3 >
< div class = "jsmod-content" >
< ul class = "support menu" >
2013-10-18 17:33:47 +00:00
{% if purchased %}
2013-10-11 21:50:54 +00:00
< li class = "first no_link" >
2014-12-20 18:03:20 +00:00
< span class = "menu-item-desc" > {% if purchased.gifts.all.count %}A gift to you!{% else %}Purchased!{% endif %}< / span >
2013-10-11 21:50:54 +00:00
< / li >
{% else %}
2014-04-16 20:15:19 +00:00
< li class = "first" itemprop = "offers" itemscope itemtype = "http://schema.org/Offer" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'purchase' work_id %}?offer_id={{work.last_campaign.individual_offer.id}}" >
2014-06-17 16:21:22 +00:00
< span class = "menu-item-price" itemprop = "price" > ${{ work.last_campaign.individual_offer.price|floatformat:2|intcomma }}< / span >
2013-10-11 21:50:54 +00:00
< span class = "menu-item-desc" > {{ work.last_campaign.individual_offer.get_license_display }}< / span >
< / a >
< / li >
{% endif %}
2013-06-27 17:10:33 +00:00
< / ul >
< / div >
2014-12-15 05:56:08 +00:00
< h3 class = "jsmod-title" > < span > Buy as a Gift< / span > < / h3 >
< div class = "jsmod-content" >
< ul class = "support menu" >
< li class = "first" itemprop = "offers" itemscope itemtype = "http://schema.org/Offer" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'purchase' work_id %}?offer_id=give{{work.last_campaign.individual_offer.id}}" >
2014-12-15 05:56:08 +00:00
< span class = "menu-item-price" itemprop = "price" > ${{ work.last_campaign.individual_offer.price|floatformat:2|intcomma }}< / span >
< span class = "menu-item-desc" > {{ work.last_campaign.individual_offer.get_license_display }}< / span >
< / a >
< / li >
< / ul >
< / div >
2013-10-18 17:33:47 +00:00
{% if borrowed %}
2013-10-11 21:50:54 +00:00
< h3 class = "jsmod-title" >
< span class = "on-wishlist" > Borrowed!< / span >
< / h3 >
{% else %}
< h3 class = "jsmod-title" > < span > Buy for a Library< / span > < / h3 >
< div class = "jsmod-content" >
< ul class = "support menu" >
< li class = "first last" >
2013-10-12 23:14:17 +00:00
{% if request.user.profile.libraries %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'purchase' work_id %}?offer_id={{work.last_campaign.library_offer.id}}" >
2014-06-17 16:21:22 +00:00
< span class = "menu-item-price" > ${{ work.last_campaign.library_offer.price|floatformat:2|intcomma }}< / span >
2013-10-11 21:50:54 +00:00
< span class = "menu-item-desc" > {{ work.last_campaign.library_offer.get_license_display }}< / span >
< / a >
{% else %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'library_list' %}" > < span class = "menu-item-desc" >
2013-10-11 21:50:54 +00:00
Join a Library to share and borrow unglue.it ebooks
< / span > < / a >
{% endif %}
< / li >
< / ul >
< / div >
2013-08-20 02:54:43 +00:00
{% endif %}
2013-06-27 17:10:33 +00:00
{% endifequal %}
2014-02-11 16:37:39 +00:00
{% ifequal work.last_campaign.type 3 %}
< h3 class = "jsmod-title" > < span > Thank the Creators< / span > < / h3 >
< div class = "jsmod-content" >
2014-07-24 19:01:29 +00:00
< ul class = "support menu" >
2014-02-11 16:37:39 +00:00
{% if purchased %}
< li class = "first no_link" >
< span class = "menu-item-desc" > You're welcome!< / span >
< / li >
{% else %}
2014-07-25 18:43:54 +00:00
{% if work.last_campaign.ask_money %}
2014-04-16 20:15:19 +00:00
< li class = "first last" itemprop = "offers" itemscope itemtype = "http://schema.org/Offer" >
2014-02-20 21:53:30 +00:00
{% if request.user.library %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'thank' work_id %}?offer_id={{work.last_campaign.library_offer.id}}" >
2014-06-17 16:21:22 +00:00
< span class = "menu-item-price" itemprop = "price" > ${{ work.last_campaign.library_offer.price|floatformat:2|intcomma }}< / span >
2014-02-20 21:53:30 +00:00
< span class = "menu-item-desc" > {{ work.last_campaign.library_offer.get_thanks_display }}< / span >
< / a >
{% else %}
2015-04-28 03:24:02 +00:00
< a href = "{% url 'thank' work_id %}?offer_id={{work.last_campaign.individual_offer.id}}" >
2014-06-17 16:21:22 +00:00
< span class = "menu-item-price" itemprop = "price" > ${{ work.last_campaign.individual_offer.price|floatformat:2|intcomma }}< / span >
2014-02-20 21:53:30 +00:00
< span class = "menu-item-desc" > {{ work.last_campaign.individual_offer.get_thanks_display }}< / span >
< / a >
{% endif %}
2014-02-11 16:37:39 +00:00
< / li >
2014-07-25 18:43:54 +00:00
{% else %}
< li class = "first last" >
2015-04-28 03:24:02 +00:00
< a href = "{% url 'download' work_id %}" >
2014-07-25 18:43:54 +00:00
< span class = "menu-item-desc" > Just read the book!< / span >
< / a >
{% endif %}
2014-02-11 16:37:39 +00:00
{% endif %}
< / ul >
< / div >
{% endifequal %}
2012-10-24 15:34:22 +00:00
< / div >
2013-02-07 18:37:54 +00:00
{% endif %}
2012-10-24 15:24:46 +00:00
< / div >
2014-11-03 21:06:25 +00:00
{% if request.user.libpref %}
2015-02-17 22:06:10 +00:00
{% if work.is_free or work.ebookfiles %}
2014-10-27 15:55:46 +00:00
< div id = "libtools" >
< p > for libraries...< / p >
2015-04-28 03:24:02 +00:00
< form method = "POST" id = "record_form" action = "{% url 'work_marc' work.id %}" >
2014-10-27 15:55:46 +00:00
{% include 'marc_form.html' %}
2014-11-03 21:29:36 +00:00
< input type = "submit" name = "submit" value = "Download {% if not work.has_marc %}stub {% endif %}MARC" id = "submit" >
2014-10-27 15:55:46 +00:00
< / form >
< / div >
2014-11-03 21:06:25 +00:00
{% endif %}
2014-10-27 15:55:46 +00:00
{% endif %}
2012-10-24 15:24:46 +00:00
< / div >
2011-11-19 15:51:51 +00:00
< / div >
< / div >
2013-02-07 18:37:54 +00:00
{% endwith %}
2011-11-23 22:28:18 +00:00
{% endwith %}
2011-11-19 15:51:51 +00:00
{% endblock %}