2011-11-19 15:51:51 +00:00
{% extends "base.html" %}
2011-12-31 03:08:04 +00:00
{% load comments %}
2012-05-13 19:32:32 +00:00
{% load humanize %}
2011-12-28 12:27:56 +00:00
{% block title %}— {% if work.last_campaign_status == 'ACTIVE' %}Campaign to unglue {% endif %}{{ work.title }}{% endblock %}
2011-12-07 17:05:31 +00:00
{% block extra_css %}
2011-11-19 15:51:51 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/campaign.css" / >
2011-12-07 17:05:31 +00:00
{% endblock %}
2011-11-19 15:51:51 +00:00
2011-12-07 17:05:31 +00:00
{% block base_js %}
2012-03-08 02:47:40 +00:00
< script type = "text/javascript" src = "{{ jquery_home }}" > < / script >
< 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 >
2012-04-03 22:43:27 +00:00
< script type = "text/javascript" src = "//platform.twitter.com/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 >
2011-11-22 19:28:27 +00:00
< script >
2012-03-07 20:01:12 +00:00
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.show_more_edition').click(function(){
2012-04-10 18:33:34 +00:00
if ($j(this).html() == 'less...') {
$j(this).html('more...')
} else {
$j(this).html('less...')
}
2012-03-07 20:01:12 +00:00
$j(this).next().toggle();
2012-02-28 22:28:33 +00:00
});
2011-11-22 19:28:27 +00:00
});
2012-04-29 01:05:41 +00:00
$j(document).ready(function(){
$j('.show_more_ebooks').click(function(){
if ($j(this).html() == '< br > hide downloads') {
$j(this).html('< br > more downloads...')
} else {
$j(this).html('< br > hide downloads')
}
$j(this).next().toggle();
});
});
2012-03-07 20:01:12 +00:00
$j(document).ready(function(){
var img = $j('#book-detail-img');
var googimg = $j('#find-google img');
img.mouseover(function(){
googimg.css({"background": "#8dc63f"}).animate(
{backgroundColor: "white"}, 1500
);
});
});
2011-11-22 19:28:27 +00:00
< / script >
2011-11-19 15:51:51 +00:00
{% endblock %}
{% block content %}
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 %}
2011-11-19 15:51:51 +00:00
< div id = "main-container" >
< div class = "js-main" >
2011-11-19 16:55:35 +00:00
< div id = "js-leftcol" >
< div class = "jsmodule rounded" >
2012-05-01 17:49:23 +00:00
< div class = "jsmod-content {{ status }}" >
2012-01-17 21:28:45 +00:00
< span >
2012-02-28 22:28:33 +00:00
{% if work.first_ebook %}
2012-07-06 15:19:51 +00:00
AVAILABLE! < br / >
2012-07-05 14:05:04 +00:00
{% if wishers == 1 %}
1 Ungluer is
{% else %}
{{ wishers }} Ungluers are
{% endif %} enjoying this book
2012-06-13 12:41:23 +00:00
{% else %}{% if work.last_campaign %}
2012-01-17 21:28:45 +00:00
{% if status == 'ACTIVE' %}
2012-05-01 17:49:23 +00:00
Unglue it! < br / >
2012-05-25 22:34:16 +00:00
${{ work.last_campaign.current_total|floatformat:0|intcomma }}/${{ work.last_campaign.target|floatformat:0|intcomma }} < br / >
2012-05-01 17:49:23 +00:00
Ending {{ countdown }}
2012-01-17 21:28:45 +00:00
{% else %}
{% if status == 'SUCCESSFUL' %}
2012-07-05 14:05:04 +00:00
Unglued on {{ work.last_campaign.deadline|date:"M j, Y"}}! < br / >
${{ work.last_campaign.current_total|floatformat:0|intcomma }} raised of ${{ work.last_campaign.target|floatformat:0|intcomma }} goal< br / >
Ebook in progress
2012-01-17 21:28:45 +00:00
{% else %}{% if status == 'INITIALIZED' %}
Campaign starting soon
{% else %}{% if status == 'SUSPENDED' %}
Campaign suspended. < br / > See < a href = "/faq" > FAQ< / a > .
{% else %}{% if status == 'WITHDRAWN' %}
Campaign withdrawn. < br / > See < a href = "/faq" > FAQ< / a > .
{% else %}{% if wishers == 1 %}
2012-05-01 17:49:23 +00:00
< span class = "findtheungluers" > {{ wishers }} Ungluer is wishing< / span >
2012-01-17 21:28:45 +00:00
{% else %}
2012-05-01 17:49:23 +00:00
< span class = "findtheungluers" > {{ wishers }} Ungluers are wishing< / span >
{% endif %}
< br / >
You can too!
{% endif %}{% endif %}{% endif %}{% endif %}
2012-01-17 21:28:45 +00:00
{% endif %}
2011-11-19 15:51:51 +00:00
{% else %}
2012-02-03 17:04:09 +00:00
< span class = "findtheungluers" >
2012-01-17 21:28:45 +00:00
{% if wishers == 1 %}
2012-05-01 17:49:23 +00:00
{{ wishers }} Ungluer is wishing
2012-01-17 21:28:45 +00:00
{% else %}
2012-05-01 17:49:23 +00:00
{{ wishers }} Ungluers are wishing
2012-01-17 21:28:45 +00:00
{% endif %}
2012-02-03 17:04:09 +00:00
< / span >
2012-05-01 17:49:23 +00:00
< br / >
You can too!
2012-01-17 21:28:45 +00:00
{% endif %}{% endif %}
< / span >
2011-11-19 15:51:51 +00:00
< / div >
< / div >
2011-11-19 16:55:35 +00:00
{% include "explore.html" %}
< / div >
2011-11-19 15:51:51 +00:00
< div id = "js-maincol" >
< div class = "js-maincol-inner" >
2012-02-06 18:53:25 +00:00
< div id = "content-block" >
2011-11-19 16:55:35 +00:00
< div class = "book-detail" >
2012-05-07 15:36:34 +00:00
{% if work.googlebooks_id %}
2012-03-07 20:01:12 +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-11-19 15:51:51 +00:00
< / div >
2012-05-07 15:36:34 +00:00
{% else %}
< div id = "book-detail-img" >
< img src = "/static/images/generic_cover_larger.png" alt = "{{ work.title }}" title = "{{ work.title }}" width = "131" height = "192" / >
< / div >
{% endif %}
2011-11-19 15:51:51 +00:00
< div class = "book-detail-info" >
2011-12-21 15:59:49 +00:00
< div class = "layout" >
2011-11-19 16:55:35 +00:00
< h2 class = "book-name" > {{ work.title }}< / h2 >
2011-12-21 15:59:49 +00:00
< div >
< div class = "pubinfo" >
< h3 class = "book-author" > {{ work.author }}< / h3 >
2012-02-02 18:40:08 +00:00
< h3 class = "book-year" > {{ pubdate }}< / h3 >
2011-12-21 15:59:49 +00:00
< / div >
2012-01-09 16:50:48 +00:00
{% if status == 'ACTIVE' %}
{% if pledged %}
2012-05-13 19:23:04 +00:00
< div class = "btn_support modify" > < form action = "{% url pledge_modify work_id %}" method = "get" > < input type = "submit" value = "Modify Pledge" / > < / form > < / div >
2012-01-09 16:50:48 +00:00
{% else %}
2012-05-13 19:23:04 +00:00
< div class = "btn_support" > < form action = "{% url pledge work_id %}" method = "get" > < input type = "submit" value = "Support" / > < / form > < / div >
2012-01-09 16:50:48 +00:00
{% endif %}
{% endif %}
2012-05-01 13:56:19 +00:00
< / div >
2011-12-21 15:59:49 +00:00
< / div >
2012-04-26 21:26:27 +00:00
{% if work.first_ebook %}
< div class = "get-book" >
2012-06-13 16:31:21 +00:00
< label > Read it now!< / label >
2012-04-26 21:26:27 +00:00
< span class = "find-link" >
{% for ebook in work.ebooks %}
2012-04-29 01:05:41 +00:00
{% if forloop.first %}
< span class = "first_ebook" >
{% endif %}
{% if forloop.counter == 2 %}
< / span >
< span class = "show_more_ebooks" > < br / > More downloads...< / span >
< span class = "more_ebooks" >
{% endif %}
{% if not forloop.first %}
< br / >
{% endif %}
2012-04-26 21:26:27 +00:00
< a href = "{{ ebook.url }}" > < img src = "/static/images/{{ ebook.format }}32.png" height = "32" alt = " {{ ebook.format }} at {{ebook.provider}}" title = " {{ ebook.format }} at {{ebook.provider}}" / > < img src = "{{ebook.rights_badge}}" height = "31" width = "88" alt = "{{ebook.rights}}" title = "{{ebook.rights}}" / > < / a >
2012-04-29 01:05:41 +00:00
{% if forloop.last %}
< / span >
{% endif %}
2012-04-26 21:26:27 +00:00
{% endfor %}
< / span >
< / div >
2012-05-01 13:56:19 +00:00
{% endif %}
2011-11-19 15:51:51 +00:00
< div class = "find-book" >
2012-06-13 16:31:21 +00:00
< label > Learn more at...< / label >
2012-04-26 21:26:27 +00:00
< div class = "find-link" >
2012-05-12 02:46:41 +00:00
{% if work.googlebooks_id %}
2012-03-09 18:00:00 +00:00
< 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 >
2012-05-12 02:46:41 +00:00
{% endif %}
2012-05-13 19:23:04 +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 >
2011-12-09 18:03:28 +00:00
{% if not request.user.is_anonymous %}
{% if request.user.profile.goodreads_user_link %}
2012-05-13 19:23:04 +00:00
< 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 >
2011-12-09 18:03:28 +00:00
{% endif %}
{% if request.user.profile.librarything_id %}
2012-05-13 19:23:04 +00:00
< 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 >
2011-12-09 18:03:28 +00:00
{% endif %}
{% endif %}
2011-11-19 15:51:51 +00:00
< / div >
< / div >
2012-07-05 14:05:04 +00:00
{% if not work.first_ebook %}
2011-11-19 15:51:51 +00:00
< div class = "pledged-info" > < div class = "pledged-group" >
2012-07-05 14:05:04 +00:00
{% if status == 'ACTIVE' %}
2012-07-07 20:38:23 +00:00
{% if work.last_campaign.supporters_count == 1 %}
2012-01-17 21:28:45 +00:00
One Ungluer has
{% else %}
2012-07-07 20:38:23 +00:00
{{ work.last_campaign.supporters_count }} Ungluers have
2012-01-17 21:28:45 +00:00
{% endif %}
2012-05-25 22:34:16 +00:00
pledged ${{ work.last_campaign.current_total|floatformat:0|intcomma }}< br / > toward a ${{ work.last_campaign.target|floatformat:0|intcomma }} goal
2012-01-17 21:28:45 +00:00
{% else %}
{% if wishers == 1 %}
1 Ungluer has
2011-11-19 16:55:35 +00:00
{% else %}
2011-11-21 15:51:50 +00:00
{{ wishers }} Ungluers have
2012-01-17 21:28:45 +00:00
{% endif %} wished for this Work
2012-07-05 14:05:04 +00:00
{% endif %}
2012-01-17 21:28:45 +00:00
< / div >
2012-05-17 13:24:57 +00:00
< div class = "status" > {% if status == 'ACTIVE' %}{{ work.percent_of_goal }}% {% endif %}< img src = "/static/images/images/icon-book-37by25-{% if work.first_ebook %}6{%else%}{{ work.percent_unglued }}{%endif%}.png" title = "book list status" alt = "book list status" / > < / div >
2012-01-17 21:28:45 +00:00
< / div >
2012-07-05 14:05:04 +00:00
{% endif %}
2001-01-01 00:12:21 +00:00
< div class = "btn_wishlist" id = "wishlist_actions" >
2011-12-19 07:10:35 +00:00
{% if request.user.is_anonymous %}
< div class = "create-account" >
2012-05-13 19:23:04 +00:00
< span title = "{% url work work_id %}" > Login to Add< / span >
2011-12-19 07:10:35 +00:00
< / div >
2012-01-02 15:59:00 +00:00
{% else %}{% if request.user.id in work.last_campaign.supporters %}
< div class = "add-wishlist" >
< span class = "on-wishlist" > Pledged!< / span >
< / div >
2011-12-07 17:05:31 +00:00
{% else %}{% if work in request.user.wishlist.works.all %}
2011-12-28 02:39:40 +00:00
< div class = "remove-wishlist-workpage" >
2012-05-13 19:23:04 +00:00
< span id = "w{{ work_id }}" > Remove This< / span >
2011-12-19 07:10:35 +00:00
< / div >
{% else %}
< div class = "add-wishlist" >
2012-05-13 19:23:04 +00:00
< span class = "work_id" id = "w{{ work_id }}" > Add to Wishlist< / span >
2011-12-19 07:10:35 +00:00
< / div >
2012-01-02 15:59:00 +00:00
{% endif %}{% endif %}{% endif %}
2011-12-07 17:05:31 +00:00
< / div >
2011-11-19 15:51:51 +00:00
< / div >
< / div >
2011-12-31 03:08:04 +00:00
{% get_comment_count for work as comment_count %}
2011-11-19 16:55:35 +00:00
< div class = "content-block-heading" id = "tabs" >
2011-11-19 15:51:51 +00:00
< ul class = "tabs" >
2012-05-23 14:40:13 +00:00
< li class = "tabs1 {% if activetab == '1' %}active{% endif %}" > < a href = "#" > < div > {% if status == 'ACTIVE' %}Campaign{% else %}Description{% endif %}< / div > < / a > < / li >
< li class = "tabs2 {% if activetab == '2' %}active{% endif %}" > < a href = "#" > < div > Comments {% if comment_count > 0 %}({{ comment_count }}){% endif %}< / div > < / a > < / li >
< li class = "tabs3 {% if activetab == '3' %}active{% endif %}" id = "supporters" > < a href = "#" > < div > Ungluers {% if wishers > 0 %}< br / > ({{ wishers }}){% endif %}< / div > < / a > < / li >
< li class = "tabs4 {% if activetab == '4' %}active{% endif %}" > < a href = "#" > < div > Rights< / div > < / a > < / li >
2011-11-19 15:51:51 +00:00
< / ul >
2011-11-19 16:55:35 +00:00
2011-11-19 15:51:51 +00:00
< / div >
2012-02-06 18:53:25 +00:00
< div id = "content-block-content" >
2012-02-01 20:57:03 +00:00
< div id = "tabs-1" class = "tabs {% if activetab == '1' %}active{% endif %}" >
2011-11-19 15:51:51 +00:00
< div class = "tabs-content" >
2012-06-21 14:49:41 +00:00
{% if status == 'ACTIVE' or status == 'SUCCESSFUL' %}
2011-11-24 00:28:30 +00:00
{{ work.last_campaign.description|safe }}
2011-11-23 22:28:18 +00:00
{% else %}
< h3 class = "tabcontent-title" > {{work.title}}< / h3 >
2012-05-07 05:18:11 +00:00
< p > {{ work.description|safe }}
2011-11-23 22:28:18 +00:00
{% endif %}
< / p >
2011-11-20 03:54:59 +00:00
< / div >
< / div >
2012-02-01 20:57:03 +00:00
< div id = "tabs-2" class = "tabs {% if activetab == '2' %}active{% endif %}" >
2012-03-07 18:23:34 +00:00
< h3 > Why unglue this? Have your say.< / h3 >
2011-11-20 03:54:59 +00:00
< div class = "tabs-content" >
2011-12-31 03:08:04 +00:00
{% render_comment_list for work %}
2012-02-02 18:40:08 +00:00
{% if user.is_authenticated %}
{% render_comment_form for work %}
2012-03-09 16:00:09 +00:00
{% else %}
< p > You must be < a href = "{% url auth_login %}?next={{ request.path }}" > logged in< / a > to comment.< / p >
2012-02-02 18:40:08 +00:00
{% endif %}
2011-11-20 03:54:59 +00:00
< / div >
< / div >
2012-02-01 20:57:03 +00:00
< div id = "tabs-3" class = "tabs {% if activetab == '3' %}active{% endif %}" >
2011-11-20 03:54:59 +00:00
< div class = "tabs-content" >
2012-07-05 15:33:57 +00:00
{% for wish in work.wishes.all reversed %}
{% with wish.wishlist.user as supporter %}
< div class = "work_supporter_nocomment" >
2012-07-06 16:25:20 +00:00
< a href = "{% url supporter supporter_username=supporter.username %}" >
2012-07-05 15:33:57 +00:00
< div class = "work_supporter_avatar" >
{% if supporter.profile.pic_url %}
< img class = "user-avatar" src = "{{ supporter.profile.pic_url }}" height = "50" width = "50" alt = "Picture of {{ supporter }}" title = "{{ supporter }}" / >
{% else %}
< img class = "user-avatar" src = "/static/images/header/avatar.png" height = "50" width = "50" alt = "Generic Ungluer Avatar" title = "Ungluer" / >
{% endif %}
< / div >
< div class = "work_supporter_name" > {{ supporter }}< / div >
< / a >
< / div >
{% endwith %}
2011-11-21 18:06:23 +00:00
{% endfor %}
2011-11-20 03:54:59 +00:00
< / div >
< / div >
2012-02-01 20:57:03 +00:00
< div id = "tabs-4" class = "tabs {% if activetab == '4' %}active{% endif %}" >
2011-11-20 03:54:59 +00:00
< div class = "tabs-content" >
2011-11-23 22:28:18 +00:00
{% if status == 'ACTIVE' %}
2012-05-07 17:09:41 +00:00
< 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 %}
2012-05-25 22:34:16 +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 > ) if ungluers can join together to raise ${{ work.last_campaign.target|floatformat:0|intcomma }} by {{ work.last_campaign.deadline }}.
2012-05-07 17:09:41 +00:00
You can help!< / p >
2012-05-16 18:03:14 +00:00
< h4 > Campaign details: the fine print< / h4 >
2011-11-24 00:28:30 +00:00
{{ work.last_campaign.details|safe }}
2011-11-23 22:28:18 +00:00
{% endif %}
2012-04-03 14:54:31 +00:00
2012-06-21 14:49:41 +00:00
{% if status == 'SUCCESSFUL' %}
< h3 class = "tabcontent-title" > A campaign has succeeded 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 > ) 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 >
{% else %}
{% if claimstatus == 'disputed' %}
< p > Rights claims are pending.< / p >
{% else %}
{% 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 / >
< form method = "GET" action = "{% url claim %}" >
{% csrf_token %}
{{ claimform.user }}
{{ claimform.work }}
{{ claimform.rights_holder }}
< input type = "submit" name = "submit" value = "Claim" >
< / form > < br / >
{% endif %}
{% endif %}
2012-04-03 14:54:31 +00:00
{% endif %}
{% endif %}
2011-11-26 22:09:33 +00:00
{% endif %}
2011-12-19 07:20:24 +00:00
2012-04-17 14:10:40 +00:00
< p > If you'd like to contact us regarding rights for this work, please email < a href = "mailto:rights@gluejar.com" > rights@gluejar.com< / a > .< / p >
2012-04-03 14:54:31 +00:00
2011-12-19 07:20:24 +00:00
{% if work.subjects.all.count > 0 %}
< h4 > Subjects< / h4 >
< ul >
{% for subject in work.subjects.all %}
< li > {{ subject.name }}< / li >
{% endfor %}
< / ul >
{% endif %}
2011-12-09 21:17:10 +00:00
< h4 > Editions< / h4 >
2012-05-11 18:13:09 +00:00
{% if user.is_staff %}
2012-05-13 19:23:04 +00:00
< div > < a href = "{% url new_edition work_id edition.id %}" > Create a new edition for this work< / a > < br / > < br / > < / div >
2012-05-11 18:13:09 +00:00
{% endif %}
2012-02-28 22:28:33 +00:00
{% if alert %}< div class = "alert" > < b > Ebook Contribution:< / b > < br / > {{ alert }}< / div > {% endif %}
2011-12-09 21:17:10 +00:00
{% for edition in editions %}
2012-05-07 15:36:34 +00:00
< div class = "editions" > {% if edition.googlebooks_id %}< div class = "image" > < img src = "{{ edition.cover_image_small }}" title = "edition cover" alt = "edition cover" / > < / div > {% endif %}
< div class = "metadata" id = "edition_{{edition.id}}" > {% if edition.publisher %}Publisher: {{edition.publisher}}< br / > {% endif %}
{% if edition.publication_date %}Published: {{edition.publication_date}}< br / > {% endif %}
{% if edition.isbn_13 %}
ISBN: {{ edition.isbn_13 }}< br / >
2012-02-07 18:11:16 +00:00
{% endif %}
2012-05-07 15:36:34 +00:00
{% if edition.oclc %}
OCLC: < a href = "http://www.worldcat.org/oclc/{{ edition.oclc }}" > {{ edition.oclc }}< / a > < br / >
{% endif %}
2012-05-11 18:13:09 +00:00
{% if user.is_staff %}
2012-05-13 19:23:04 +00:00
< a href = "{% url new_edition work_id edition.id %}" > Edit this edition< / a > < br / >
2012-05-11 18:13:09 +00:00
{% endif %}
2012-05-07 15:36:34 +00:00
{% if edition.googlebooks_id %}
See < a href = "https://encrypted.google.com/books?id={{ edition.googlebooks_id }}" > this edition on Google Books< / a >
{% endif %}
< / div >
< / div >
2012-03-05 21:03:57 +00:00
{% if edition.ebook_form %}{% ifnotequal status 'ACTIVE' %}
2012-04-27 21:14:57 +00:00
{% if edition.hide_details %}< div class = "show_more_edition" > more...< / div > {% endif %}
< div { % if edition . hide_details % } class = "more_edition" { % endif % } >
2012-03-05 21:03:57 +00:00
{% if edition.ebooks.count %}
2012-02-28 22:28:33 +00:00
< h5 > eBooks for this Edition< / h5 >
{% for ebook in edition.ebooks.all %}
2012-02-29 19:34:43 +00:00
< a href = "{{ebook.url}}" > {{ ebook.format }}< / a > {{ebook.rights}} at {{ebook.provider}}< br / >
2012-02-28 22:28:33 +00:00
{% endfor %}
{% endif %}
2012-03-07 18:23:34 +00:00
< h5 > Add an eBook for this Edition:< / h5 >
2012-02-28 22:28:33 +00:00
< span > If you know that this edition is available as a public domain or Creative Commons ebook, you can enter the link here and "unglue" it. Right now, we're only accepting URLs that point to Internet Archive, Wikisources, Hathitrust, Project Gutenberg, or Google Books.< / span >
< form method = "POST" action = "#edition_{{edition.id}}" >
2012-04-27 21:14:57 +00:00
{% csrf_token %}{{ edition.ebook_form.edition.errors }}{{ edition.ebook_form.edition }}{{ edition.ebook_form.user.errors }}{{ edition.ebook_form.user }}{{ edition.ebook_form.provider.errors }}{{ edition.ebook_form.provider }}
{{ edition.ebook_form.url.errors }}< span > URL: {{ edition.ebook_form.url }}< / span > < br / >
{{ edition.ebook_form.format.errors }}< span > File Format: {{ edition.ebook_form.format }}< / span >
{{ edition.ebook_form.rights.errors }}< span > License: {{ edition.ebook_form.rights }}< / span > < br / >
2012-03-09 18:00:00 +00:00
< input type = "submit" name = "add_ebook" value = "add ebook" / >
2012-02-28 22:28:33 +00:00
< / form >
< / div >
2012-03-05 21:03:57 +00:00
{% endifnotequal %}{% endif %}
2012-05-11 18:13:09 +00:00
2011-12-19 07:10:35 +00:00
{% endfor %}
2011-11-19 15:51:51 +00:00
< / div >
< / div >
< / div >
2011-11-19 16:55:35 +00:00
< / div >
2011-11-19 15:51:51 +00:00
< / div >
< / div >
< div id = "js-rightcol" >
< div class = "js-rightcol-pad rounded" >
2011-11-19 16:55:35 +00:00
< div class = "jsmodule" >
< h3 class = "jsmod-title" > < span > Share< / span > < / h3 >
2011-11-19 15:51:51 +00:00
< div class = "jsmod-content" >
< ul class = "social menu" >
2012-01-02 16:10:33 +00:00
< a href = "https://www.facebook.com/sharer.php?u={{request.build_absolute_uri|urlencode:" " } } " > < li class = "facebook first" > < span > Facebook< / span > < / li > < / a >
2012-03-12 17:18:11 +00:00
< 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 >
2012-05-14 03:11:06 +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 %}
2011-12-19 17:22:00 +00:00
< a href = "#" id = "embed" > < li class = "embed" > < span > Embed< / span > < / li > < / a >
2011-11-19 15:51:51 +00:00
< / ul >
2012-03-09 18:00:00 +00:00
< div id = "widgetcode" > Copy/paste this into your site:< br / > < textarea rows = "7" cols = "22" > < iframe src="https://{{request.META.HTTP_HOST}}/api/widget/{{work.first_isbn_13}}/" width="152" height="325" frameborder="0"> < /iframe> < / textarea > < / div >
2011-11-19 15:51:51 +00:00
< / div >
< / div >
2011-11-23 22:28:18 +00:00
{% if status == 'ACTIVE' %}
2011-11-19 15:51:51 +00:00
< div class = "jsmodule" >
2012-07-05 14:39:19 +00:00
< a href = "{% url pledge work_id %}" > < h3 class = "jsmod-title" > < span > Premiums< / span > < / h3 > < / a >
2011-11-19 15:51:51 +00:00
< div class = "jsmod-content" >
< ul class = "support menu" >
2012-05-13 19:23:04 +00:00
{% 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 %}" >
< a href = "{% url pledge_modify work_id %}?premium_id={{premium.id}}" >
2012-05-25 22:34:16 +00:00
< span class = "menu-item-price" > ${{ premium.amount|floatformat:0|intcomma }}< / span > {% if pledged.0.premium == premium %}< div class = "you_pledged" > Pledged!< / div > {% endif %}
2012-05-13 19:23:04 +00:00
< 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 %}" >
< a href = "{% url pledge work_id %}?premium_id={{premium.id}}" >
2012-05-25 22:34:16 +00:00
< span class = "menu-item-price" > ${{ premium.amount|floatformat:0|intcomma }}< / span >
2012-05-13 19:23:04 +00:00
< span class = "menu-item-desc" > {{ premium.description }}< / span >
{% ifnotequal premium.limit 0 %}< br / > Only {{ premium.premium_remaining }} remaining! {% endifnotequal %}
< / a > < / li >
{% endif %}
{% endfor %}
{% endif %}
2011-11-19 15:51:51 +00:00
< / ul >
< / div >
< / div >
{% endif %}
< / div >
< / div >
< / div >
< / div >
2011-11-23 22:28:18 +00:00
{% endwith %}
2012-05-13 19:23:04 +00:00
{% endwith %}
2011-11-19 15:51:51 +00:00
{% endblock %}