{% extends "base.html" %} {% load comments %} {% load humanize %} {% block title %}— {% if work.last_campaign_status == 'ACTIVE' %}Campaign to unglue {% endif %}{{ work.title }}{% endblock %} {% block extra_css %} {% endblock %} {% block base_js %} {% endblock %} {% block content %} {% with work.last_campaign_status as status %} {% with work.id as work_id %}
{% if work.first_ebook %} AVAILABLE!
{% if wishers == 1 %} 1 Ungluer is {% else %} {{ wishers }} Ungluers are {% endif %} enjoying this book {% else %}{% if work.last_campaign %} {% if status == 'ACTIVE' %} Unglue it!
${{ work.last_campaign.current_total|floatformat:0|intcomma }}/${{ work.last_campaign.target|floatformat:0|intcomma }}
Ending {{ countdown }} {% else %} {% if status == 'SUCCESSFUL' %} Unglued on {{ work.last_campaign.deadline|date:"M j, Y"}}!
${{ work.last_campaign.current_total|floatformat:0|intcomma }} raised of ${{ work.last_campaign.target|floatformat:0|intcomma }} goal
Ebook in progress {% else %}{% if status == 'INITIALIZED' %} Campaign starting soon {% else %}{% if status == 'SUSPENDED' %} Campaign suspended.
See FAQ. {% else %}{% if status == 'WITHDRAWN' %} Campaign withdrawn.
See FAQ. {% else %}{% if wishers == 0 %} No ungluers are wishing yet.
Be the first! {% else %}{% if wishers == 1 %} {{ wishers }} Ungluer is wishing
You can too! {% else %} {{ wishers }} Ungluers are wishing
You can too! {% endif %} {% endif %}{% endif %}{% endif %}{% endif %} {% endif %} {% else %} {% if wishers == 1 %} {{ wishers }} Ungluer is wishing {% else %} {{ wishers }} Ungluers are wishing {% endif %}
You can too! {% endif %}{% endif %}
{% include "explore.html" %}
{% if work.googlebooks_id %} {% else %}
{{ work.title }}
{% endif %}

{{ work.title }}

{{ work.author }}

{{ pubdate }}

{% if status == 'ACTIVE' %} {% if pledged %}
{% else %}
{% endif %} {% else %} {% if work.first_ebook %} {% endif %} {% endif %}
{% if not work.first_ebook %}
{% if status == 'ACTIVE' %} {% if work.last_campaign.supporters_count == 1 %} One Ungluer has {% else %} {{ work.last_campaign.supporters_count }} Ungluers have {% endif %} pledged ${{ work.last_campaign.current_total|floatformat:0|intcomma }}
toward a ${{ work.last_campaign.target|floatformat:0|intcomma }} goal {% else %} {% if wishers == 1 %} 1 Ungluer has {% else %} {{ wishers }} Ungluers have {% endif %} wished for this Work {% endif %}
{% if status == 'ACTIVE' %}{{ work.percent_of_goal }}% {% endif %}book list status
{% endif %}
{% if request.user.is_anonymous %} {% else %}{% if request.user.id in work.last_campaign.supporters %}
Pledged!
{% else %}{% if work in request.user.wishlist.works.all %}
Remove from Wishlist
{% else %}
Add to Wishlist
{% endif %}{% endif %}{% endif %}
{% get_comment_count for work as comment_count %}
{% if status == 'ACTIVE' or status == 'SUCCESSFUL' %} {{ work.last_campaign.description|safe }} {% else %}

{{work.title}}

{{ work.description|safe }} {% endif %}

Why unglue this? Have your say.

{% render_comment_list for work %} {% if user.is_authenticated %} {% render_comment_form for work %} {% else %}

You must be logged in to comment.

{% endif %}
{% for wish in work.wishes.all reversed %} {% with wish.wishlist.user as supporter %} {% endwith %} {% endfor %}
{% if status == 'ACTIVE' %}

A campaign is running to unglue {{work.title}}!

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 {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) if ungluers can join together to raise ${{ work.last_campaign.target|floatformat:0|intcomma }} by {{ work.last_campaign.deadline }}. You can help!

Campaign details: the fine print

{{ work.last_campaign.details|safe }} {% endif %} {% if status == 'SUCCESSFUL' %}

A campaign has succeeded to unglue {{work.title}}!

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 {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) thanks to the efforts of ungluers like you.

Campaign details: the fine print

{{ work.last_campaign.details|safe }} {% endif %} {% if status != 'ACTIVE' and status != 'SUCCESSFUL' %}

Rights Information

{% if claimstatus == 'one_active' %}

This work has been claimed by {{ rights_holder_name }}.

{% else %} {% if claimstatus == 'disputed' %}

Rights claims are pending.

{% else %} {% if claimstatus == 'one_pending' %}

A claim for this work by {{ rights_holder_name }} is pending.

{% else %} {% if request.user.rights_holder.all.count %} Is this work yours? Claim it:

{% csrf_token %} {{ claimform.user }} {{ claimform.work }} {{ claimform.rights_holder }}

{% endif %} {% endif %} {% endif %} {% endif %} {% endif %}

If you'd like to contact us regarding rights for this work, please email rights@gluejar.com.

{% if work.subjects.all.count > 0 %}

Subjects

    {% for subject in work.subjects.all %}
  • {{ subject.name }}
  • {% endfor %}
{% endif %}

Editions

{% if user.is_staff %} {% endif %} {% if alert %}
Ebook Contribution:
{{ alert }}
{% endif %} {% for edition in editions %}
{% if edition.googlebooks_id %}
edition cover
{% endif %}
{% if edition.ebook_form %}{% ifnotequal status 'ACTIVE' %} {% if edition.hide_details %}
more...
{% endif %}
{% if edition.ebooks.count %}
eBooks for this Edition
{% for ebook in edition.ebooks.all %} {{ ebook.format }} {{ebook.rights}} at {{ebook.provider}}
{% endfor %} {% endif %}
Add an eBook for this Edition:
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.
{% 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 }}URL: {{ edition.ebook_form.url }}
{{ edition.ebook_form.format.errors }}File Format: {{ edition.ebook_form.format }}    {{ edition.ebook_form.rights.errors }}License: {{ edition.ebook_form.rights }}
{% endifnotequal %}{% endif %}
{% endfor %}

Share

Copy/paste this into your site:
{% if status == 'ACTIVE' %} {% endif %}
{% endwith %} {% endwith %} {% endblock %}