2011-12-09 00:12:26 +00:00
{% extends "base.html" %}
2011-12-29 17:57:43 +00:00
{% load truncatechars %}
2013-02-08 15:12:28 +00:00
{% block title %}— Support Free eBooks{% endblock %}
2012-02-07 17:01:00 +00:00
2011-12-09 00:12:26 +00:00
{% block extra_css %}
2014-03-31 18:18:16 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/landingpage4.css" / >
2013-04-02 15:58:50 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/searchandbrowse2.css" / >
2013-03-19 18:53:11 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/book_panel2.css" / >
2014-03-28 02:10:06 +00:00
< link type = "text/css" rel = "stylesheet" href = "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" >
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" >
2013-06-05 19:05:14 +00:00
{% if top_campaigns %}
< h3 class = "featured_books" > Active Campaigns< / h3 >
< div >
{% for campaign in top_campaigns %}
{% with campaign.work as work %}
{% with work.googlebooks_id as googlebooks_id %}
{% with "ACTIVE" as status %}
{% with campaign.deadline as deadline %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}{% endwith %}{% endwith %}
{% endfor %}
2014-03-28 02:10:06 +00:00
< a class = "more_featured_books" href = "{% url campaign_list 'ending' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-06-05 19:05:14 +00:00
< / div >
{% else %}{% if coming_soon %}
< h3 class = "featured_books" > Coming Soon< / h3 >
< div >
{% for campaign in coming_soon %}
{% with campaign.work as work %}
{% with work.googlebooks_id as googlebooks_id %}
{% with "INITIALIZED" as status %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}{% endwith %}
{% endfor %}
2014-03-28 02:10:06 +00:00
< a class = "more_featured_books" href = "{% url campaign_list 'soon' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-06-05 19:05:14 +00:00
< / div >
{% endif %}{% endif %}
2013-03-26 18:55:50 +00:00
< div class = "spacer" > < / div >
< h3 class = "featured_books" > Already Unglued< / h3 >
2013-03-29 20:23:43 +00:00
< div >
{% for work in unglued_books %}
{% with work.googlebooks_id as googlebooks_id %}
{% with "ACTIVE" as status %}
{% with work.last_campaign.deadline as deadline %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}{% endwith %}
{% endfor %}
2014-03-28 02:10:06 +00:00
< a class = "more_featured_books" href = "{% url unglued_list '' %}" > < 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 >
< h3 class = "featured_books" > Latest Creative Commons< / h3 >
< div >
{% for work in cc_books %}
{% with work.googlebooks_id as googlebooks_id %}
{% with "ACTIVE" as status %}
{% with work.last_campaign.deadline as deadline %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}{% endwith %}
{% endfor %}
2014-03-28 02:10:06 +00:00
< a class = "more_featured_books" href = "{% url cc_list %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2014-03-05 19:02:12 +00:00
< / div >
2013-03-26 18:55:50 +00:00
< div class = "spacer" > < / div >
2014-02-20 04:16:28 +00:00
< h3 class = "featured_books" > Site Faves< / h3 >
2013-03-29 20:23:43 +00:00
< div >
{% for work in most_wished %}
{% with work.googlebooks_id as googlebooks_id %}
{% with "ACTIVE" as status %}
{% with work.last_campaign.deadline as deadline %}
{% include "book_panel.html" %}
{% endwith %}{% endwith %}{% endwith %}
{% endfor %}
2014-03-28 02:10:06 +00:00
< a class = "more_featured_books" href = "{% url work_list 'popular' %}" > < i class = "fa fa-arrow-circle-o-right fa-3x" > < / i > < / a >
2013-03-29 20:23:43 +00:00
< / div >
2013-03-26 18:55:50 +00:00
< div class = "spacer" > < / div >
< div class = "js-main-container-inner" >
2011-12-09 00:12:26 +00:00
< div id = "js-maincontainer-bot-block" >
< div id = "js-search" >
2014-01-06 01:43:18 +00:00
< label > What book do you want to be free? < / label >
2013-03-26 18:55:50 +00:00
< form action = "{% url search %}" method = "get" >
< input type = "text" id = "watermark" onfocus = "imgfocus()" onblur = "imgblur(0)" size = "25" class = "inputbox" name = "q" value = "{{ q }}" >
< input type = "submit" class = "greenbutton" value = "Search" >
< / form >
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< div id = "js-maincontainer-faq" >
2013-03-26 18:55:50 +00:00
< div class = "js-maincontainer-faq-inner" >
2013-04-09 16:31:19 +00:00
Questions? Read our < a href = "/faq/" > general FAQ< / a > or < a href = "/faq/rightsholders/" > Author/Publisher FAQ< / a > .
2011-12-09 00:12:26 +00:00
< / div >
< / div >
2013-03-26 18:55:50 +00:00
< / div >
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" >
< form action = '{% url registration_register %}' method = 'post' onsubmit = "return put_un_in_cookie2();" > {% csrf_token %}
< 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" >
< input type = "submit" class = "signup" value = "sign up" / >
< / div >
< div class = "google_signup" >
< a href = "/socialauth/login/google?next=/next/" > < img src = "{{ STATIC_URL }}images/auth/google_32_noborder.png" alt = "google" / > < / a > < div > < a href = "/socialauth/login/google?next=/next/" > Sign Up With Google< / a > < / div >
< / div >
< / 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 %}
2013-04-02 15:21:44 +00:00
< div class = "jsmodule" >
< h3 class = "module-title" > News< / h3 >
< div class = "jsmod-content" >
2014-01-21 16:11:59 +00:00
Review: < a href = "http://blog.unglue.it/2014/01/20/new-stories-about-africas-future-by-young-africans/" > New stories about Africa's future.< / 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 %}
{% ifequal 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" >
2013-03-29 23:41:28 +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" >
< a href = "{% url supporter object.user.username %}" > {{ object.user.username }}< / a > < br / >
2013-10-05 15:41:12 +00:00
{% ifequal object.campaign.type 1 %}
2013-09-07 02:19:46 +00:00
pledged to unglue
2013-10-05 15:41:12 +00:00
{% endifequal %}
{% ifequal object.campaign.type 2 %}
2013-09-07 02:19:46 +00:00
bought a copy of
2014-02-20 04:16:28 +00:00
{% endifequal %}
{% ifequal object.campaign.type 3 %}
supported
2013-09-07 02:19:46 +00:00
{% endifequal %}< br / >
2013-03-26 17:54:03 +00:00
< a class = "user-book-name" href = "{% url work object.campaign.work.id %}" > {{ object.campaign.work.title }}< / a >
< / 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 / >
< a class = "user-book-name" href = "{% url work object.campaign.work.id %}" > {{ object.campaign.work.title }}< / a >
< / span >
{% endif %}
2013-03-26 17:54:03 +00:00
{% else %}{% ifequal event.2 "comment" %}
< span class = "user-avatar" >
2013-03-29 23:41:28 +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" >
< a href = "{% url supporter object.user.username %}" > {{ object.user.username }}< / a > < br / >
commented on< br / >
2013-03-29 20:25:58 +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 >
{% else %}{% ifequal event.2 "wish" %}
< span class = "user-avatar" >
2013-03-29 23:41:28 +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" >
< a href = "{% url supporter object.wishlist.user.username %}" > {{ object.wishlist.user.username }}< / a > < br / >
2014-02-20 04:16:28 +00:00
faved< br / >
2013-03-26 17:54:03 +00:00
< a class = "user-book-name" href = "{% url work object.work.id %}" > {{ object.work.title }}< / a >
< / span >
{% endifequal %}{% endifequal %}{% endifequal %}
{% endwith %}
2011-12-09 00:12:26 +00:00
< / li >
{% endfor %}
< / ul >
< / div >
< / div >
< / div >
< / div >
2013-03-27 14:33:47 +00:00
< h3 class = "featured_books" > As seen on< / h3 >
< ul id = "as_seen_on" >
< li > < a href = "http://boingboing.net/2012/06/28/release-a-deadly-monster-a-dr.html" > < img 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 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 src = "{{ STATIC_URL }}images/press_logos/huffington_post_logo.png" > < / a > < / li >
< li > < a href = "http://lj.libraryjournal.com/2012/05/publishing/ebook-crowdfunding-platform-unglue-it-launched/" > < img src = "{{ STATIC_URL }}images/press_logos/library_journal_logo.png" > < / a > < / li >
< li > < a href = "http://mashable.com/2012/06/14/unglueit/" > < img src = "{{ STATIC_URL }}images/press_logos/mashable_logo.png" > < / a > < / li >
< li > < a href = "http://goodereader.com/blog/electronic-readers/unglue-it-unleashes-two-new-crowd-sourced-titles/" > < img src = "{{ STATIC_URL }}images/press_logos/good_ereader_logo.png" > < / a > < / li >
< / ul >
< div class = "speech_bubble" > < span > One of the more innovative concepts that has grown out of digital publishing...< / span > < / div >
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< / div >
2011-12-05 21:16:42 +00:00
{% endblock %}