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 %}
2012-11-20 19:26:06 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/landingpage2.css" / >
2012-03-07 18:23:34 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/searchandbrowse.css" / >
2011-12-09 00:12:26 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/book_panel.css" / >
2012-07-18 19:14:48 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/learnmore.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" >
2011-12-09 00:12:26 +00:00
jQuery(document).ready(function($) {
$('.listview').addClass("panelview").removeClass("listview");
2013-03-12 18:26:40 +00:00
});
function put_un_in_cookie(){
$j.cookie('un', $j('#id_username_pop').val(), {path: '/'});
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-09 00:12:26 +00:00
< script src = "/static/js/slides.min.jquery.js" > < / script >
2012-03-07 18:23:34 +00:00
< script src = "/static/js/slideshow.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 %}
2011-12-16 17:16:30 +00:00
< div id = "expandable" >
< div id = "js-rightcol2" >
< div id = "js-rightcol-padd2" >
< div class = "jsmodule" >
2012-05-21 14:03:56 +00:00
< div id = "collapser" class = "collapser_x" > X< / div >
2011-12-16 17:16:30 +00:00
< h3 class = "module-title" > Start Ungluing Now!< / h3 >
< div class = "jsmod-content" >
2012-05-26 22:36:10 +00:00
{% if not request.user.is_authenticated %}
2013-03-12 18:26:40 +00:00
< form action = "{% url registration_register %}" method = "post" onsubmit = "return put_un_in_cookie();" > {% csrf_token %}
2011-12-16 17:16:30 +00:00
< div class = "user-name" >
< label > Username< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_username_pop" type = "text" class = "required" name = "username" maxlength = "30" size = "30" / >
2011-12-16 17:16:30 +00:00
< / div >
< div class = "email" >
< label > Email< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_email_pop" type = "text" class = "required" name = "email" maxlength = "75" size = "30" / >
2011-12-16 17:16:30 +00:00
< / div >
< div class = "password" >
< label > Password< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_password1_pop" type = "password" class = "required" name = "password1" size = "30" / >
2011-12-16 17:16:30 +00:00
< / div >
< div class = "password" >
< label > Password (again):< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_password2_pop" type = "password" class = "required" name = "password2" size = "30" / >
2011-12-16 17:16:30 +00:00
< / div >
< div class = "button" >
2012-11-06 14:31:53 +00:00
< input type = "submit" class = "signup" value = "Sign Up" / >
2011-12-16 17:16:30 +00:00
< / div >
< / form >
2012-11-07 20:56:37 +00:00
< div class = "google_signup" >
2013-03-08 07:43:11 +00:00
< a href = "/socialauth/login/google?next=/next/" > < img src = "{{ STATIC_URL }}images/auth/google_32_noborder.png" alt = "google" / > < / a > < div > Or: < a href = "/socialauth/login/google?next=/next/" > Sign Up With Google< / a > < / div >
2011-12-16 17:16:30 +00:00
< / div >
2012-05-26 22:36:10 +00:00
{% else %}
< div >
2012-07-06 16:25:20 +00:00
You are logged in as < a href = "{% url supporter supporter_username=request.user.username %}" > {{ request.user.username }}< / a > .
2012-05-26 22:36:10 +00:00
< / div >
{% endif %}
2011-12-16 17:16:30 +00:00
< / div >
< / div >
< / div >
< / div >
< / div >
2011-12-09 00:12:26 +00:00
< div id = "main-container" class = "main-container-fl" >
< div class = "js-main" >
< div id = "js-maincol-fl" >
< div id = "js-main-container" >
< div class = "js-main-container-inner" >
< div id = "js-maincontainer-content" class = "have-content-right-module" >
< div class = "content-right-module" >
< h3 > How does it work?< / h3 >
< / div >
< div style = "clear:right;" >
< div class = "item-content" >
2012-01-15 14:50:40 +00:00
< h2 class = "page-heading" > Give ebooks to the world.< / h2 >
2011-12-09 00:12:26 +00:00
< / div >
< div class = "jsmod-content" >
2012-02-03 17:28:48 +00:00
< a href = "{{ faqurl }}#crowdfunding" > < img src = "/static/images/landingpage/icon-group.png" alt = "How does it work?" title = "How does it work?" height = "269" width = "268" / > < / a >
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< / div >
< div id = "js-maincontainer-bot-block" >
< div id = "js-search" >
< label > What book would you give to the world? < / label >
< form action = "{% url search %}" method = "get" >
2011-12-12 21:09:18 +00:00
< input type = "text" id = "watermark" onfocus = "imgfocus()" onblur = "imgblur(0)" size = "25" class = "inputbox" name = "q" value = "{{ q }}" >
2011-12-13 21:37:45 +00:00
< input type = "submit" class = "greenbutton" value = "Search" >
2011-12-09 00:12:26 +00:00
< / form >
< / div >
< / div >
< div id = "js-maincontainer-faq" >
< div class = "js-maincontainer-faq-inner" >
2012-03-10 03:16:07 +00:00
Questions? Read our < a href = "/faq/" > general FAQ< / a > or < a href = "/faq/rightsholders/" > FAQ for rights holders< / a > .
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< / div >
< / div >
< div id = "js-rightcol" >
< div class = "js-rightcol-padd" >
2012-02-07 17:01:00 +00:00
< div class = "jsmodule" id = "mainlogin" >
2011-12-09 00:12:26 +00:00
< h3 class = "module-title" > Start Ungluing Now!< / h3 >
2012-05-26 22:36:10 +00:00
{% if not request.user.is_authenticated %}
2011-12-09 00:12:26 +00:00
< div class = "jsmod-content" >
2013-03-08 02:53:32 +00:00
< form action = '{% url registration_register %}' method = 'post' > {% csrf_token %}
2011-12-09 00:12:26 +00:00
< div class = "user-name" >
< label > Username< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_username_main" type = "text" class = "required" name = "username" maxlength = "30" size = "30" / >
2011-12-09 00:12:26 +00:00
< / div >
< div class = "email" >
< label > Email< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_email_main" type = "text" class = "required" name = "email" maxlength = "75" size = "30" / >
2011-12-09 00:12:26 +00:00
< / div >
< div class = "password" >
< label > Password< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_password1_main" type = "password" class = "required" name = "password1" size = "30" / >
2011-12-09 00:12:26 +00:00
< / div >
< div class = "password" >
< label > Password (again):< / label >
2012-03-10 03:16:07 +00:00
< input id = "id_password2_main" type = "password" class = "required" name = "password2" size = "30" / >
2011-12-09 00:12:26 +00:00
< / div >
< div class = "button" >
2011-12-14 21:49:36 +00:00
< input type = "submit" class = "signup" value = "sign up" / >
2011-12-09 00:12:26 +00:00
< / div >
2012-11-07 20:56:37 +00:00
< div class = "google_signup" >
2013-03-08 07:43:11 +00:00
< 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 >
2011-12-09 00:12:26 +00:00
< / div >
2012-03-10 03:16:07 +00:00
< / form >
2011-12-09 00:12:26 +00:00
< / div >
2012-05-26 22:36:10 +00:00
{% else %}
< div >
2012-07-06 16:25:20 +00:00
You are logged in as < a href = "{% url supporter supporter_username=request.user.username %}" > {{ request.user.username }}< / a > .
2012-05-26 22:36:10 +00:00
< / div >
{% endif %}
2011-12-09 00:12:26 +00:00
< / div >
< div class = "jsmodule" >
< h3 class = "module-title" > Who's ungluing what< / h3 >
< div class = "jsmod-content" >
< ul class = "ungluingwhat" >
{% for event in events %}
< li >
2012-01-03 14:47:06 +00:00
< div class = "user-avatar" > < a href = "{% url supporter event.wishlist.user.username %}" > < img src = "{% if event.wishlist.user.picurl %}{{ event.wishlist.user.picurl}}{% else %}/static/images/header/avatar.png{% endif %}" width = "43" height = "43" title = "{{event.wishlist.user.username}}" alt = "{{event.wishlist.user.username}} avatar" / > < / a > < / div >
2011-12-09 00:12:26 +00:00
< div class = "user-book-info" >
2011-12-29 17:57:43 +00:00
< p class = "user-book-info" > < a href = "{% url supporter event.wishlist.user.username %}" > {{event.wishlist.user.username|truncatechars:20}}< / a > is Wishing For< / p >
2011-12-09 00:12:26 +00:00
< a class = "user-book-name" href = "{% url work event.work.id %}" > {{ event.work.title }}< / a >
< / div >
2012-03-29 18:46:06 +00:00
< div class = "user-book-thumb" > < a class = "user-book-name" href = "{% url work event.work.id %}" > < img src = "{{ event.work.cover_image_thumbnail }}" width = "29" height = "43" title = "{{ event.work.title }}" alt = "{{ event.work.title }}" / > < / a > < / div >
2011-12-09 00:12:26 +00:00
< / li >
{% endfor %}
< / ul >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div id = "js-slide" >
< div class = "js-main" >
2012-03-26 19:26:47 +00:00
< div class = "jsmodule" id = "content-block" >
{% include "slideshow.html" %}
2011-12-09 00:12:26 +00:00
< / div >
< / div >
< / div >
2011-12-05 21:16:42 +00:00
{% endblock %}