diff --git a/frontend/templates/work.html b/frontend/templates/work.html index e6d2f79c..6676af29 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -69,6 +69,105 @@ {% else %} {{ work.last_campaign.description|safe }} {% endif %} + +
+ {% if action == 'display' %} + {% if status == 'ACTIVE' %} + {% if work.last_campaign.type == 1 %} +

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!

+ {% endif %} + {% if work.last_campaign.type == 2 %} +

A Buy-to-Unglue 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 }}) 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 TODAY. + You can help!

+ {% endif %} + {% if work.last_campaign.type == 3 %} +

A Thanks-for-Ungluing Campaign is running to reward the creators of {{work.title}}!

+

The rights holder, {% for claim in work.claim.all %} + {% if claim.status == 'active' %} + {{ claim.rights_holder.rights_holder_name }} + {% endif %} + {% endfor %} + , has released {{work.title}} to the world as a Creative Commons licensed ebook ({{ work.last_campaign.license }}) . + You can help us say "Thank You!" so that other creators will do the same.

+ {% endif %} +

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 }} + +

+ {% else %} + Are you the author or publisher of this work? If so, you can claim it as yours by registering as an Unglue.it rights holder. + {% endif %} + {% endif %} + {% endif %} + {% endif %} + {% endif %} + {% if work.is_free %} +

Downloads

+
+ This work has been downloaded {{ work.download_count }} times via unglue.it ebook links. +
    + {% for ebook in work.ebooks.all %} +
  1. {{ ebook.download_count }} - {{ ebook.format }} {% if ebook.version_label %} ({{ ebook.version_label }}) {% endif %}({{ ebook.rights }}) at {{ ebook.provider }}.
  2. + {% endfor %} +
+
+ {% if user.is_staff %} +

+ Feature this work today. +

+ {% endif %} + {% endif %} + {% if user.is_staff %} +

Related Works

+
Merge other works into this one
+ {% endif %} + {% endif %} +
diff --git a/static/scss/bookview.scss b/static/scss/bookview.scss index 1f7be185..06b46ead 100644 --- a/static/scss/bookview.scss +++ b/static/scss/bookview.scss @@ -104,3 +104,7 @@ .btn_wishlist div{ float: none; } + +.description-more-content { + padding-top: 20px; +} diff --git a/static/scss/global.scss b/static/scss/global.scss index f55c489c..1ff83a1f 100644 --- a/static/scss/global.scss +++ b/static/scss/global.scss @@ -1,15 +1,9 @@ @import 'settings/settings'; @import 'foundation'; @include foundation-everything; -<<<<<<< HEAD -======= @include breakpoint(small only) { #feedback { display: none; } } - - - ->>>>>>> newfoundation