2011-12-09 00:12:26 +00:00
{% extends "base.html" %}
2016-05-11 14:41:50 +00:00
2018-01-30 17:47:51 +00:00
{% load truncatechars %}
{% load sass_tags %}
2013-02-08 15:12:28 +00:00
{% block title %}— Support Free eBooks{% endblock %}
2012-02-07 17:01:00 +00:00
2018-01-05 21:37:52 +00:00
{% block extra_meta %}
< meta property = "og:title" content = "Unglue.it - A Community Supporting Free eBooks" / >
< meta property = "og:type" content = "website" / >
< meta property = "og:url" content = "https://unglue.it" / >
< meta property = "og:image" content = "https://unglue.it/static/images/logo.png" / >
{% endblock %}
2011-12-09 00:12:26 +00:00
{% block extra_css %}
2018-01-30 17:47:51 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/landingpage4.scss' %}" / >
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/searchandbrowse2.scss' %}" / >
2018-01-30 04:36:41 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/book_panel2.scss' %}" / >
2011-12-09 00:12:26 +00:00
{% endblock %}
2013-03-08 19:16:24 +00:00
{% block extra_js %}
2011-12-09 00:12:26 +00:00
2013-03-08 21:46:33 +00:00
< script type = "text/javascript" src = "{{ jquery_ui_home }}" > < / script >
2011-12-09 00:12:26 +00:00
<!-- toggle to panelview state instead of listview default -->
2012-01-02 21:20:07 +00:00
< script type = "text/javascript" >
2013-03-20 17:45:16 +00:00
jQuery(document).ready(function($) {
$('.listview').addClass("panelview").removeClass("listview");
});
var $j = jQuery.noConflict();
function put_un_in_cookie2(){
$j.cookie('un', $j('#id_username_main').val(), {path: '/', expires: 90 });
2013-03-12 18:26:40 +00:00
return true;
}
2011-12-09 00:12:26 +00:00
< / script >
2012-01-02 21:20:07 +00:00
< script type = "text/javascript" src = "/static/js/definitions.js" > < / script >
2012-03-20 16:29:29 +00:00
< script type = "text/javascript" src = "/static/js/wishlist.js" > < / script >
2011-12-09 00:12:26 +00:00
< script type = "text/javascript" src = "/static/js/greenpanel.js" > < / script >
2012-02-07 17:01:00 +00:00
< script type = "text/javascript" src = "/static/js/highlight_signup.js" > < / script >
2011-12-16 17:16:30 +00:00
< script type = "text/javascript" src = "/static/js/expand.js" > < / script >
2013-02-08 17:40:45 +00:00
< meta name = "google-site-verification" content = "wFZncBw5tNpwRVyR08NZFNr7WXqv5X1BkEga2fpUNOo" / >
2011-12-09 00:12:26 +00:00
{% endblock %}
{% block topsection %}
2012-01-02 21:20:07 +00:00
{% include "learn_more.html" %}
2011-12-09 00:12:26 +00:00
{% endblock %}
{% block content %}
< div id = "main-container" class = "main-container-fl" >
2013-03-26 19:31:44 +00:00
< div class = "js-main" id = "content-block" >
2011-12-09 00:12:26 +00:00
< div id = "js-maincol-fl" >
< div id = "js-main-container" >
2014-07-03 19:43:49 +00:00
< h3 class = "featured_books" > Today's Featured Free eBook< / h3 >
{% with featured as work %}
< div class = "book-detail" >
2017-09-14 15:42:27 +00:00
< div id = "book-detail-img" class = "book-cover" style = "float:left;padding-right:10px" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'work' featured.id %}" >
2014-07-03 19:43:49 +00:00
{% if work.googlebooks_id %}
< img src = "{{ work.cover_image_thumbnail }}" alt = "Find {{ work.title }} at Google Books" title = "Find {{ work.title }} at Google Books" width = "131" height = "192" / >
{% else %}
2015-08-21 21:54:39 +00:00
< img src = "{{ work.cover_image_thumbnail }}" alt = "{{ work.title }}" title = "{{ work.title }}" width = "131" height = "192" / >
2014-07-03 19:43:49 +00:00
{% endif %}
< / a >
< div class = "quicktour" style = " padding-top: 10px;padding-left: 5px;" >
< div class = "panelview panelfront side1" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'download' work.id %}" title = "Download featured ebook" class = "qtbutton qtreadittext hijax" > < div class = "read_itbutton qtreadit" > < span > Read it Now< / span > < / div > < / a >
2014-07-03 19:43:49 +00:00
< / div >
< / div >
< / div >
< div class = "book-detail-info" style = "float:left;" >
< div style = "width: 520px;float: left;" >
2015-04-09 03:32:36 +00:00
< div class = "book-name" style = "font-size:larger; margin-bottom:10px" > < a href = "{% url 'work' featured.id %}" > {{ work.title }}< / a > < / div >
2014-07-03 19:43:49 +00:00
< div >
< div class = "pubinfo" >
< div class = "book-author" >
2016-07-25 18:50:19 +00:00
< span > {{ work.relators.0.name }}< / span > {% if work.relators.count == 2 %}
2015-07-28 03:21:11 +00:00
and < span > {{ work.relators.1.name }}< / span >
2016-07-25 18:50:19 +00:00
{% endif %}{% if work.relators.count > 2 %}{% for author in work.relators %}{% if not forloop.first %}, < span > {{ author.name }}< / span > {% endif %}{% endfor %}
2014-07-03 19:43:49 +00:00
{% endif %}
< / div >
< div class = "book-year" >
{% if work.last_campaign.publisher %}
2015-04-09 03:32:36 +00:00
< span > < a href = "{% url 'bypubname_list' work.last_campaign.publisher.name.id %}" > {{ work.last_campaign.publisher }}< / a > < / span >
2014-07-03 19:43:49 +00:00
{% endif %}
2015-10-05 23:17:16 +00:00
< span > {{ work.publication_date }}< / span >
2014-07-03 19:43:49 +00:00
< / div >
< div class = "book-description" style = "max-height:200px;overflow:scroll" > {{ work.description|safe }}< / div >
< / div >
< / div >
< / div >
< / div >
{% endwith %}
< / div >
2015-08-24 14:27:39 +00:00
{% if faves %}
< div class = "spacer" > < / div >
< h3 class = "featured_books" > Your Recent Faves< / h3 >
< div >
{% for work in faves %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
{% endwith %}
{% endfor %}
< a class = "more_featured_books" href = "{% url 'supporter' request.user %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
< / div >
{% endif %}
2014-05-22 18:08:15 +00:00
{% if top_pledge %}
2015-08-24 14:27:39 +00:00
< div class = "spacer" > < / div >
2014-05-22 18:08:15 +00:00
< h3 class = "featured_books" > Pledge to Make These eBooks Free< / h3 >
2013-06-05 19:05:14 +00:00
< div >
2014-05-22 18:08:15 +00:00
{% for campaign in top_pledge %}
2013-06-05 19:05:14 +00:00
{% with campaign.work as work %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
2014-05-22 18:08:15 +00:00
{% endwith %}{% endwith %}
2013-06-05 19:05:14 +00:00
{% endfor %}
2015-04-09 03:32:36 +00:00
< a class = "more_featured_books" href = "{% url 'campaign_list' 'pledge' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-06-05 19:05:14 +00:00
< / div >
2014-05-22 18:08:15 +00:00
{% endif %}
2015-08-24 14:27:39 +00:00
< div class = "spacer" > < / div >
< h3 class = "featured_books" > Read These Free Licensed eBooks< / h3 >
< div >
{% for work in cc_books %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
{% endwith %}
{% endfor %}
< a class = "more_featured_books" href = "{% url 'cc_list' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
< / div >
2014-05-22 18:08:15 +00:00
< div class = "spacer" > < / div >
{% if top_b2u %}
< h3 class = "featured_books" > Buy and Read These eBooks to Make Them Free< / h3 >
< div >
{% for campaign in top_b2u %}
{% with campaign.work as work %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}
{% endfor %}
2015-04-09 03:32:36 +00:00
< a class = "more_featured_books" href = "{% url 'campaign_list' 'b2u' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2014-05-22 18:08:15 +00:00
< / div >
{% endif %}
< div class = "spacer" > < / div >
{% if top_t4u %}
< h3 class = "featured_books" > Read These Free eBooks and Thank the Creators< / h3 >
2013-06-05 19:05:14 +00:00
< div >
2014-05-22 18:08:15 +00:00
{% for campaign in top_t4u %}
2013-06-05 19:05:14 +00:00
{% with campaign.work as work %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
2014-05-22 18:08:15 +00:00
{% endwith %}{% endwith %}
2013-06-05 19:05:14 +00:00
{% endfor %}
2015-04-09 03:32:36 +00:00
< a class = "more_featured_books" href = "{% url 'campaign_list' 't4u' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-06-05 19:05:14 +00:00
< / div >
2014-05-22 18:08:15 +00:00
{% endif %}
2013-03-26 18:55:50 +00:00
< div class = "spacer" > < / div >
2014-05-22 18:08:15 +00:00
< h3 class = "featured_books" > Read These Unglued eBooks - You've Made Them Free< / h3 >
2013-03-29 20:23:43 +00:00
< div >
{% for work in unglued_books %}
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
2014-05-22 18:08:15 +00:00
{% endwith %}
2013-03-29 20:23:43 +00:00
{% endfor %}
2015-04-09 03:32:36 +00:00
< a class = "more_featured_books" href = "{% url 'campaign_list' 'unglued' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-03-29 20:23:43 +00:00
< / div >
2014-03-05 19:02:12 +00:00
< div class = "spacer" > < / div >
2014-05-22 18:08:15 +00:00
2011-12-09 00:12:26 +00:00
< / div >
< div id = "js-rightcol" >
< div class = "js-rightcol-padd" >
2013-03-22 19:47:03 +00:00
{% if not request.user.is_authenticated %}
< div class = "jsmodule" id = "mainlogin" >
< h3 class = "module-title" > Start Ungluing Now!< / h3 >
< div class = "jsmod-content" >
2015-04-09 03:32:36 +00:00
< form action = '{% url ' registration_register ' % } ' method = 'post' onsubmit = "return put_un_in_cookie2();" > {% csrf_token %}
2013-03-22 19:47:03 +00:00
< div class = "user-name" >
< label > Username< / label >
< input id = "id_username_main" type = "text" class = "required" name = "username" maxlength = "30" size = "30" / >
< / div >
< div class = "email" >
< label > Email< / label >
< input id = "id_email_main" type = "text" class = "required" name = "email" maxlength = "75" size = "30" / >
< / div >
< div class = "password" >
< label > Password< / label >
< input id = "id_password1_main" type = "password" class = "required" name = "password1" size = "30" / >
< / div >
< div class = "password" >
< label > Password (again):< / label >
< input id = "id_password2_main" type = "password" class = "required" name = "password2" size = "30" / >
< / div >
< div class = "button" >
2015-04-09 03:32:36 +00:00
< input type = "submit" class = "signup" value = "Sign Up Now" onclick = "this.disabled=true,this.form.submit();" / >
2013-03-22 19:47:03 +00:00
< / div >
2015-05-06 20:13:55 +00:00
< div class = "google_signup" style = "padding-bottom: 10px;" >
2015-04-09 03:32:36 +00:00
< a class = "btn btn-social btn-google-plus" href = "{% url 'social:begin' " google-oauth2 " % } ? next = {% if request . GET . next % } { { request . GET . next | urlencode } } { % else % } / next / { % endif % } " > < i class = "fa fa-google" > < / i > Sign Up with Google< / a >
2013-03-22 19:47:03 +00:00
< / div >
2015-05-06 20:13:55 +00:00
< div class = "google_signup" >
< a class = "btn btn-social btn-yahoo" href = "{% url 'social:begin' " yahoo " % } ? next = {% if request . GET . next % } { { request . GET . next | urlencode } } { % else % } / next / { % endif % } " > < i class = "fa fa-yahoo" > < / i > Sign Up with Yahoo!< / a >
< / div >
2013-03-22 19:47:03 +00:00
< / form >
2011-12-09 00:12:26 +00:00
< / div >
2012-05-26 22:36:10 +00:00
< / div >
2013-03-22 19:47:03 +00:00
{% endif %}
2017-02-13 18:33:26 +00:00
< div class = "jsmodule" >
< h3 class = "module-title" > Donate!< / h3 >
< div class = "jsmod-content" >
< div > Please help support Unglue.it by making a tax-deductible donation to the Free Ebook Foundation.< / div >
< form class = "askform" method = "POST" action = "{% url 'newdonation' %}" >
< div class = "donate_amount" >
< label > Amount ($): < / label > < input id = "amount" max = "20000.00" min = "1.00" name = "amount" step = "0.01" type = "number" value = "10.00" class = "donate" > < / div >
< div class = "button" >
< input name = "pledge" type = "submit" value = "Donate" id = "donatesubmit" class = "donate" / >
< / div >
< / form >
< / div >
< / div >
2013-04-02 15:21:44 +00:00
< div class = "jsmodule" >
< h3 class = "module-title" > News< / h3 >
< div class = "jsmod-content" >
2018-01-26 22:01:16 +00:00
< a href = "https://blog.unglue.it/2018/01/24/unglue-it-has-resumed-crowdfunding/" > Unglue.it has resumed crowdfunding< / a >
2013-04-02 15:21:44 +00:00
< / div >
< / div >
2011-12-09 00:12:26 +00:00
< div class = "jsmodule" >
2013-03-22 19:47:03 +00:00
< h3 class = "module-title" > Latest Ungluing< / h3 >
2011-12-09 00:12:26 +00:00
< div class = "jsmod-content" >
< ul class = "ungluingwhat" >
{% for event in events %}
2013-03-26 17:54:03 +00:00
{% comment %}
2013-03-27 14:33:47 +00:00
events are tuples of date, object, and string representing object type
2013-03-26 17:54:03 +00:00
{% endcomment %}
2013-10-05 15:41:12 +00:00
< li >
{% with event.1 as object %}
2016-07-25 18:50:19 +00:00
{% if event.2 == "pledge" %}
2014-02-20 20:56:10 +00:00
{% if object.user%}
2013-03-26 17:54:03 +00:00
< span class = "user-avatar" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.user.username %}" > < img src = "{{ object.user.profile.avatar_url }}" width = "43" height = "43" title = "{{ object.user.username }}" alt = "Avatar for {{ object.user.username }}" / > < / a >
2013-03-26 17:54:03 +00:00
< / span >
< span class = "user-book-info" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.user.username %}" > {{ object.user.username }}< / a > < br / >
2016-07-25 18:50:19 +00:00
{% if object.campaign.type == 1 %}
pledged to unglue
{% elif object.campaign.type == 2 %}
bought a copy of
{% elif object.campaign.type == 3 %}
supported
{% endif %}< br / >
2017-10-28 22:33:58 +00:00
< a class = "user-book-name" href = "{% url 'work' object.campaign.work_id %}" > {{ object.campaign.work.title }}< / a >
2013-03-26 17:54:03 +00:00
< / span >
2014-02-20 20:56:10 +00:00
{% else %}
< span class = "user-avatar" >
< img src = "/static/images/header/anonuser.png" width = "43" height = "43" title = "Anonymous User" alt = "Avatar for Anonymous User" / >
< / span >
< span class = "user-book-info" >
Anonymous User< br / >
supported < br / >
2017-10-28 22:33:58 +00:00
< a class = "user-book-name" href = "{% url 'work' object.campaign.work_id %}" > {{ object.campaign.work.title }}< / a >
2014-02-20 20:56:10 +00:00
< / span >
{% endif %}
2016-07-25 18:50:19 +00:00
{% elif event.2 == "comment" %}
2013-03-26 17:54:03 +00:00
< span class = "user-avatar" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.user.username %}" > < img src = "{{ object.user.profile.avatar_url }}" width = "43" height = "43" title = "{{ object.user.username }}" alt = "Avatar for {{ object.user.username }}" / > < / a >
2013-03-26 17:54:03 +00:00
< / span >
< span class = "user-book-info" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.user.username %}" > {{ object.user.username }}< / a > < br / >
2013-03-26 17:54:03 +00:00
commented on< br / >
2015-04-09 03:32:36 +00:00
< a class = "user-book-name" href = "{% url 'work' object.content_object.id %}?tab=2" > {{ object.content_object.title }}< / a >
2013-03-26 17:54:03 +00:00
< / span >
2016-07-25 18:50:19 +00:00
{% elif event.2 == "wish" %}
2013-03-26 17:54:03 +00:00
< span class = "user-avatar" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.wishlist.user.username %}" > < img src = "{{ object.wishlist.user.profile.avatar_url }}" width = "43" height = "43" title = "{{ object.wishlist.user.username }}" alt = "Avatar for {{ object.wishlist.user.username }}" / > < / a >
2013-03-26 17:54:03 +00:00
< / span >
< span class = "user-book-info" >
2015-04-09 03:32:36 +00:00
< a href = "{% url 'supporter' object.wishlist.user.username %}" > {{ object.wishlist.user.username }}< / a > < br / >
2014-02-20 04:16:28 +00:00
faved< br / >
2017-10-28 22:33:58 +00:00
< a class = "user-book-name" href = "{% url 'work' object.work_id %}" > {{ object.work.title }}< / a >
2013-03-26 17:54:03 +00:00
< / span >
2016-07-25 18:50:19 +00:00
{% endif %}
2013-03-26 17:54:03 +00:00
{% endwith %}
2011-12-09 00:12:26 +00:00
< / li >
{% endfor %}
< / ul >
< / div >
< / div >
2014-04-29 20:16:00 +00:00
< div class = "jsmodule" >
< h3 class = "module-title" > Questions?< / h3 >
< div id = "jsmod-content" >
Read our < a href = "/faq/" > general FAQ< / a > or < a href = "/faq/rightsholders/" > Author/Publisher FAQ< / a > .
< / div >
< / div >
2011-12-09 00:12:26 +00:00
< / div >
< / div >
2013-03-27 14:33:47 +00:00
< h3 class = "featured_books" > As seen on< / h3 >
< ul id = "as_seen_on" >
2018-01-05 21:37:52 +00:00
< li > < a href = "http://boingboing.net/2012/06/28/release-a-deadly-monster-a-dr.html" > < img alt = "boingboing" src = "{{ STATIC_URL }}images/press_logos/boingboing_logo.png" > < / a > < / li >
< li > < a href = "http://www.zeit.de/digital/internet/2012-07/unglue-ebook-creative-commons" > < img alt = "die zeit" src = "{{ STATIC_URL }}images/press_logos/die_zeit_logo.png" > < / a > < / li >
< li > < a href = "http://www.huffingtonpost.com/2012/05/21/unglueit-free-ebooks-crowdfunding_n_1532644.html" > < img alt = "huffington post" src = "{{ STATIC_URL }}images/press_logos/huffington_post_logo.png" > < / a > < / li >
< li > < a href = "http://techcrunch.com/2014/05/06/unglue-it-sets-books-free-after-authors-get-paid/" > < img alt = "techcrunch" src = "{{ STATIC_URL }}images/press_logos/techcrunch_logo.png" > < / a > < / li >
< li > < a href = "http://www.thedigitalshift.com/2014/02/ebooks/buy-unglue-ebook-crowdfunding-model-goes-beta/" > < img alt = "library journal" src = "{{ STATIC_URL }}images/press_logos/library_journal_logo.png" > < / a > < / li >
< li > < a href = "http://www.networkworld.com/community/node/85329" > < img alt = "networkworld" src = "{{ STATIC_URL }}images/press_logos/networkworld_logo.png" > < / a > < / li >
2013-03-27 14:33:47 +00:00
< / ul >
2014-05-09 03:32:23 +00:00
< div class = "speech_bubble" > < span > For readers it’ s a gold mine of great books they can have a say in bringing to market.< / span > < / div >
2013-03-27 14:33:47 +00:00
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< / div >
2011-12-05 21:16:42 +00:00
{% endblock %}