2011-09-12 05:53:54 +00:00
|
|
|
{% extends "base.html" %}
|
2011-11-18 04:09:23 +00:00
|
|
|
{% load endless %}
|
2011-12-29 17:50:09 +00:00
|
|
|
{% load truncatechars %}
|
2011-09-12 05:53:54 +00:00
|
|
|
|
2011-09-21 15:11:36 +00:00
|
|
|
{% block title %} — {{ supporter.username }}{% endblock %}
|
2011-11-29 23:14:25 +00:00
|
|
|
{% block extra_css %}
|
2011-11-06 20:24:16 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/supporter_layout.css" />
|
2012-03-07 18:23:34 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/searchandbrowse.css" />
|
2011-11-06 20:24:16 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/book_list.css" />
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/book_panel.css" />
|
2011-11-29 23:14:25 +00:00
|
|
|
{% endblock %}
|
2012-03-08 14:37:25 +00:00
|
|
|
{% block extra_js %}
|
2012-03-03 01:47:13 +00:00
|
|
|
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
|
2011-10-14 05:23:46 +00:00
|
|
|
<script type="text/javascript" src="/static/js/wishlist.js"></script>
|
2012-03-08 02:47:40 +00:00
|
|
|
<script type="text/javascript" src="{{ jquery_ui_home }}"></script>
|
2011-11-09 01:34:15 +00:00
|
|
|
<script type="text/javascript" src="/static/js/greenpanel.js"></script>
|
2011-11-17 00:47:29 +00:00
|
|
|
<script type="text/javascript" src="/static/js/import_books.js"></script>
|
2012-02-02 18:40:08 +00:00
|
|
|
<script type="text/javascript" src="/static/js/counter.js"></script>
|
2012-03-07 18:23:34 +00:00
|
|
|
|
|
|
|
{% ifequal supporter request.user %}
|
|
|
|
<!-- we only need to be able to toggle the profile edit area in this case -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
$j(document).ready(function(){
|
|
|
|
$j('#user-block-hide').hide();
|
|
|
|
$j('#user-block1 span').click(function() {
|
|
|
|
$j(this).toggleClass("active");
|
|
|
|
$j("#user-block-hide").slideToggle(300);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endifequal %}
|
|
|
|
|
|
|
|
{% if works %}
|
|
|
|
<!-- when the user's wishlist is empty, views.py gives us works for a slideshow -->
|
|
|
|
<script src="/static/js/slides.min.jquery.js"></script>
|
|
|
|
<script src="/static/js/slideshow.js"></script>
|
|
|
|
|
|
|
|
<!-- toggle to panelview instead of listview default so slideshow will look right -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
$j(document).ready(function($) {
|
|
|
|
$('.listview').addClass("panelview").removeClass("listview");
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% else %}
|
|
|
|
<!-- we only need these when there's stuff on the user's wishlist -->
|
|
|
|
<script type="text/javascript" src="/static/js/toggle.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/tabs.js"></script>
|
|
|
|
{% endif %}
|
2011-10-13 16:23:16 +00:00
|
|
|
|
2012-03-08 14:37:25 +00:00
|
|
|
<!-- highlight LT/GR add functions when people click on import divs -->
|
|
|
|
<script type="text/javascript">
|
2012-02-29 13:41:30 +00:00
|
|
|
var $j = jQuery.noConflict();
|
2012-03-08 14:37:25 +00:00
|
|
|
function highlightTarget(targetdiv) {
|
|
|
|
var target = $j(targetdiv);
|
|
|
|
target.css({"background": "#8dc63f"}).animate(
|
|
|
|
{backgroundColor: "white"}, 1500
|
|
|
|
);
|
|
|
|
};
|
2012-02-29 13:41:30 +00:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|
2012-03-20 17:01:29 +00:00
|
|
|
{% block extra_head %}
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="feed for books from {{ supporter }}'s ungluing wishlist" href="feed" />
|
|
|
|
{% endblock %}
|
2012-02-29 13:41:30 +00:00
|
|
|
|
2011-12-28 02:39:40 +00:00
|
|
|
{% comment %}
|
2011-10-13 16:23:16 +00:00
|
|
|
To do:
|
|
|
|
create topsection file for inclusion in multiple contexts, if needed
|
|
|
|
figure out how to configure date display
|
2011-10-14 05:29:23 +00:00
|
|
|
decide if we're even including date joined in profile
|
2011-11-12 21:36:31 +00:00
|
|
|
Goodreads
|
2012-02-29 13:41:30 +00:00
|
|
|
be sure words display correctlydja
|
2011-10-14 05:29:23 +00:00
|
|
|
do I need both add-wishlist and remove-wishlist classes? do they differ?
|
2011-10-13 16:23:16 +00:00
|
|
|
better alignment on I am ungluing & badges
|
|
|
|
|
|
|
|
make sure backed/backing/wishlist is the order we want the badges to be in
|
|
|
|
test code with other campaign statuses -- random_campaigns needs to set a variety of statuses!
|
|
|
|
why is there a status in regluit.payment.models.Transaction? does it duplicate the status in regluit.core.models.Campaign?
|
|
|
|
|
|
|
|
|
|
|
|
there's no tab for seeing ALL my books, only the filters! huh.
|
|
|
|
|
2011-12-28 02:39:40 +00:00
|
|
|
{% endcomment %}
|
2011-10-13 16:23:16 +00:00
|
|
|
|
|
|
|
{% block topsection %}
|
2012-03-02 14:40:10 +00:00
|
|
|
<div id="locationhash">{{ activetab }}</div>
|
2011-10-13 16:23:16 +00:00
|
|
|
<div id="js-topsection">
|
2011-10-14 05:29:23 +00:00
|
|
|
<div class="js-main">
|
|
|
|
<div class="js-topnews">
|
|
|
|
<div class="js-topnews1">
|
|
|
|
<div class="js-topnews2">
|
|
|
|
<div class="js-topnews3">
|
|
|
|
<div class="user-block">
|
|
|
|
{% ifequal supporter request.user %}
|
2012-02-07 17:01:00 +00:00
|
|
|
<div id="user-block1">
|
2011-10-13 16:23:16 +00:00
|
|
|
<div class="block-inner">
|
2012-03-09 16:58:48 +00:00
|
|
|
<span class="my-setting">My Profile</span>
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="user-block2">
|
2011-11-12 20:02:47 +00:00
|
|
|
{% if supporter.profile.pic_url %}
|
2011-11-14 01:35:29 +00:00
|
|
|
<img class="user-avatar" src="{{ supporter.profile.pic_url }}" height="50" width="50" alt="Picture of {{ supporter }}" title="{{ supporter }}" />
|
2011-11-12 20:02:47 +00:00
|
|
|
{% else %}
|
2011-11-14 01:35:29 +00:00
|
|
|
<img class="user-avatar" src="/static/images/header/avatar.png" height="50" width="50" alt="Generic Ungluer Avatar" title="Ungluer" />
|
2011-11-12 20:02:47 +00:00
|
|
|
{% endif %}
|
2011-12-29 17:50:09 +00:00
|
|
|
<span class="user-name"><a href="#">{{ supporter.username|truncatechars:20 }}</a></span>
|
2011-10-13 16:55:44 +00:00
|
|
|
<span class="user-date">{{ date }}</span>
|
2011-10-13 16:23:16 +00:00
|
|
|
<span class="user-short-info">{{ supporter.profile.tagline }}</span>
|
|
|
|
</div>
|
2011-12-16 17:17:08 +00:00
|
|
|
{% else %}
|
2012-02-07 17:01:00 +00:00
|
|
|
<div id="user-block1">
|
2011-12-16 17:17:08 +00:00
|
|
|
<div class="block-inner">
|
|
|
|
{% if supporter.profile.pic_url %}
|
|
|
|
<img class="user-avatar" src="{{ supporter.profile.pic_url }}" height="50" width="50" alt="Picture of {{ supporter }}" title="{{ supporter }}" />
|
|
|
|
{% else %}
|
|
|
|
<img class="user-avatar" src="/static/images/header/avatar.png" height="50" width="50" alt="Generic Ungluer Avatar" title="Ungluer" />
|
|
|
|
{% endif %}
|
|
|
|
<span class="user-name"><a href="#">{{ supporter.username }}</a></span>
|
|
|
|
<span class="user-date">{{ date }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="user-block2">
|
2011-12-21 19:33:48 +00:00
|
|
|
<span class="user-short-info">{% with supporter.profile.tagline as tagline %}{% if tagline %}{{ tagline }}{% else %} {% endif %}{% endwith %}</span>
|
2011-12-16 17:17:08 +00:00
|
|
|
</div>
|
|
|
|
{% endifequal %}
|
2011-12-15 15:28:23 +00:00
|
|
|
<div class="user-block3">
|
|
|
|
<div class="badges">
|
2011-12-15 18:55:26 +00:00
|
|
|
<span class="rounded"><span class="blue tabs1" {% ifequal request.user supporter %}title="I've unglued {{ backed }} {% if backed == 1 %}book{% else %}books{% endif %}."{% else %}title="{{ supporter }} has unglued {{ backed }} {% if backed == 1 %}book{% else %}books{% endif %}."{% endifequal %}><span class="hovertext">I've unglued </span>{{ backed }}</span></span>
|
|
|
|
<span class="rounded"><span class="orange tabs2" {% ifequal request.user supporter %}title="I'm supporting {{ backing }} {% if backing == 1 %}book{% else %}books{% endif %}."{% else %}title="{{ supporter }} is supporting {{ backing }} {% if backing == 1 %}book{% else %}books{% endif %}."{% endifequal %}><span class="hovertext">I'm ungluing </span>{{ backing }}</span></span>
|
|
|
|
<span class="rounded"><span class="grey tabs3" {% ifequal request.user supporter %}title="I'm wishing for {{ wished }} {% if wished == 1 %}book{% else %}books{% endif %}."{% else %}title="{{ supporter }} is wishing for {{ wished }} {% if wished == 1 %}book{% else %}books{% endif %}."{% endifequal %}><span class="hovertext">I'm wishing for </span>{{ wished }}</span></span>
|
2011-12-15 15:28:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-13 16:23:16 +00:00
|
|
|
<div class="user-block4">
|
2011-10-14 05:29:23 +00:00
|
|
|
<div class="social">
|
2011-10-25 03:32:32 +00:00
|
|
|
{% if supporter.profile.home_url %}
|
2012-01-15 23:11:51 +00:00
|
|
|
<a href="{{ supporter.profile.home_url }}" class="nounderline">
|
2011-11-16 17:36:24 +00:00
|
|
|
<img src="/static/images/supporter_icons/home_square.png" alt="{{ supporter }}'s homepage" title="{{ supporter }}'s Homepage" />
|
2011-11-07 20:39:02 +00:00
|
|
|
</a>
|
2011-10-25 03:32:32 +00:00
|
|
|
{% endif %}
|
2011-11-12 03:51:12 +00:00
|
|
|
{% if supporter.profile.facebook_id %}
|
2012-01-15 23:11:51 +00:00
|
|
|
<a href="http://www.facebook.com/profile.php?id={{supporter.profile.facebook_id}}" class="nounderline">
|
2011-11-16 17:36:24 +00:00
|
|
|
<img src="/static/images/supporter_icons/facebook_square.png" alt="{{ supporter }}'s Facebook" title="{{ supporter }}'s Facebook" />
|
2011-11-12 03:51:12 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2011-10-25 03:32:32 +00:00
|
|
|
{% if supporter.profile.twitter_id %}
|
2012-01-15 23:11:51 +00:00
|
|
|
<a href="https://twitter.com/#!/{{ supporter.profile.twitter_id }}" class="nounderline">
|
2011-11-16 17:36:24 +00:00
|
|
|
<img src="/static/images/supporter_icons/twitter_square.png" alt="{{ supporter }}'s Twitter" title="{{ supporter }}'s Twitter" />
|
2011-11-12 03:51:12 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if supporter.profile.goodreads_user_link %}
|
2012-01-15 23:11:51 +00:00
|
|
|
<a href="{{supporter.profile.goodreads_user_link}}" class="nounderline">
|
2011-11-16 17:36:24 +00:00
|
|
|
<img src="/static/images/supporter_icons/goodreads_square.png" alt="{{ supporter }}'s profile on GoodReads" title="{{ supporter }}'s page on GoodReads" />
|
2011-11-12 03:51:12 +00:00
|
|
|
</a>
|
2011-10-25 03:32:32 +00:00
|
|
|
{% endif %}
|
2011-11-12 03:51:12 +00:00
|
|
|
{% if supporter.profile.librarything_id %}
|
2012-01-15 23:11:51 +00:00
|
|
|
<a href="http://www.librarything.com/profile/{{ supporter.profile.librarything_id }}" class="nounderline">
|
2011-11-16 17:36:24 +00:00
|
|
|
<img src="/static/images/supporter_icons/librarything_square.png" alt="{{ supporter }}'s profile on LibraryThing" title="{{ supporter }}'s page on LibraryThing" />
|
2011-11-12 03:51:12 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-11-07 20:39:02 +00:00
|
|
|
{% ifequal supporter request.user %}
|
2012-02-07 17:01:00 +00:00
|
|
|
<div id="user-block-hide">
|
2012-03-09 18:15:30 +00:00
|
|
|
<form method="POST" action="#">
|
2011-11-07 20:39:02 +00:00
|
|
|
{% csrf_token %}
|
2011-10-14 05:29:23 +00:00
|
|
|
<div class="block block1">
|
2011-10-13 16:23:16 +00:00
|
|
|
<div class="block-inner">
|
2012-02-02 16:06:54 +00:00
|
|
|
<h3 class="title">Your Tagline</h3>
|
2011-11-09 17:24:26 +00:00
|
|
|
{{ profile_form.tagline.errors }}
|
2012-02-02 16:06:54 +00:00
|
|
|
{{ profile_form.tagline }}<br />
|
2012-02-02 18:40:08 +00:00
|
|
|
<span id="count_display">140</span> characters remaining<br /><br />
|
2011-10-21 16:51:07 +00:00
|
|
|
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
2011-12-16 17:17:08 +00:00
|
|
|
<input class="profile-save" type="submit" name="submit" value="Update" id="submit">
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
|
2011-10-19 07:13:29 +00:00
|
|
|
<div class="block block2">
|
2011-10-14 05:29:23 +00:00
|
|
|
<h3 class="title">Links</h3>
|
|
|
|
<div class="check-list">
|
2011-12-26 17:53:28 +00:00
|
|
|
<label> {% if supporter.profile.home_url %}Change{% else %}Add{% endif %} your homepage URL:</label>
|
2011-11-09 17:24:26 +00:00
|
|
|
{{ profile_form.home_url }}{{ profile_form.home_url.errors }}
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="check-list">
|
2011-11-12 21:36:31 +00:00
|
|
|
{% if supporter.profile.twitter_id %}
|
2012-03-09 16:58:48 +00:00
|
|
|
<a href="{% url socialauth_associate_begin backend='twitter' %}">Update your Twitter connection</a> <br /> or disconnect Twitter: {{ profile_form.clear_twitter }}
|
2011-11-12 21:36:31 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="{% url socialauth_associate_begin backend='twitter' %}">Connect your Twitter account</a> to Unglue.it
|
|
|
|
{% endif %}
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
2011-11-12 18:58:31 +00:00
|
|
|
<div class="check-list">
|
|
|
|
{% if supporter.profile.facebook_id %}
|
2012-03-09 16:58:48 +00:00
|
|
|
<a href="{% url socialauth_associate_begin backend='facebook' %}">Update your Facebook connection</a> <br /> or disconnect Facebook: {{ profile_form.clear_facebook }}
|
2011-11-12 21:36:31 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="{% url socialauth_associate_begin backend='facebook' %}">Connect your Facebook account</a> to Unglue.it
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-02-29 13:41:30 +00:00
|
|
|
<div class="check-list" id="connectgr">
|
2011-11-12 21:36:31 +00:00
|
|
|
{% if user.profile.goodreads_user_id %}
|
2012-03-09 16:58:48 +00:00
|
|
|
<a href="{{goodreads_auth_url}}">Update your GoodReads connection</a> <br /> or disconnect GoodReads: {{ profile_form.clear_goodreads }}
|
2011-11-12 18:58:31 +00:00
|
|
|
{% else %}
|
2011-11-12 21:36:31 +00:00
|
|
|
<a href="{{goodreads_auth_url}}">Connect your GoodReads account</a> to Unglue.it
|
2011-11-12 18:58:31 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-02-29 13:41:30 +00:00
|
|
|
<div class="check-list" id="connectlt">
|
2011-12-26 17:53:28 +00:00
|
|
|
<label>{% if supporter.profile.librarything_id %}Change{% else %}Add{% endif %} your LibraryThing User ID:</label>
|
2011-11-12 03:51:12 +00:00
|
|
|
{{ profile_form.librarything_id }}{{ profile_form.librarything_id.errors }}
|
|
|
|
</div>
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
2011-11-17 00:47:29 +00:00
|
|
|
</form>
|
2011-10-19 07:13:29 +00:00
|
|
|
<div class="block block3">
|
2011-12-22 21:03:15 +00:00
|
|
|
<h3 class="title">Import your books</h3>
|
2012-01-24 17:36:45 +00:00
|
|
|
{% if goodreads_id %}
|
2011-11-17 00:47:29 +00:00
|
|
|
<form id="load_shelf_form" method="post" action="#">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="fieldWrapper">
|
2012-01-24 17:36:45 +00:00
|
|
|
|
2012-03-09 18:59:24 +00:00
|
|
|
<div id="loadgr"><span><span id="goodreads_shelves"></span><input id="goodreads_input" type="submit" value="Select your GoodReads shelves" /></span>
|
2012-01-24 17:36:45 +00:00
|
|
|
</div>
|
2011-11-17 00:47:29 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2011-12-22 21:03:15 +00:00
|
|
|
{% else %}
|
2012-03-08 14:37:25 +00:00
|
|
|
<div id="loadgr" onclick="highlightTarget('#connectgr'); return false;"><div>Connect your GoodReads account to import from GoodReads.</div></div>
|
2011-11-17 00:47:29 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if librarything_id %}
|
|
|
|
<form id="librarything_load" method="post" action="#">
|
|
|
|
{% csrf_token %}
|
2012-02-09 17:28:45 +00:00
|
|
|
<div id="loadlt"><input type="submit" id="librarything_input" value="Add your LibraryThing library" /></div>
|
2011-11-17 00:47:29 +00:00
|
|
|
</form>
|
2011-12-22 21:03:15 +00:00
|
|
|
{% else %}
|
2012-03-08 14:37:25 +00:00
|
|
|
<div id="loadlt" onclick="highlightTarget('#connectlt'); return false;"><div>Add your LibraryThing ID to import from LibraryThing.</div></div>
|
2011-11-17 00:47:29 +00:00
|
|
|
{% endif %}
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-25 03:32:32 +00:00
|
|
|
{% endifequal %}
|
2011-10-13 16:23:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-09-29 11:44:03 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2011-09-12 05:53:54 +00:00
|
|
|
{% block content %}
|
2011-10-13 16:23:16 +00:00
|
|
|
|
2011-09-21 15:11:36 +00:00
|
|
|
<div id="main-container">
|
|
|
|
<div class="js-main">
|
2011-11-06 19:02:29 +00:00
|
|
|
<div id="js-leftcol">
|
2011-11-07 20:39:02 +00:00
|
|
|
{% include "explore.html" %}
|
|
|
|
</div>
|
2011-09-12 05:53:54 +00:00
|
|
|
|
2011-09-21 15:11:36 +00:00
|
|
|
<div id="js-maincol-fr">
|
|
|
|
<div class="js-maincol-inner">
|
2012-02-06 18:53:25 +00:00
|
|
|
<div id="content-block">
|
2012-05-01 13:56:19 +00:00
|
|
|
|
|
|
|
{% if not works %}
|
|
|
|
|
|
|
|
{% comment %}
|
|
|
|
if we're in empty-wishlist, slideshow mode, suppress tab area
|
|
|
|
{% endcomment %}
|
|
|
|
|
2011-12-14 21:49:36 +00:00
|
|
|
<div class="content-block-heading wantto" id="tabs">
|
2011-10-14 05:29:23 +00:00
|
|
|
<ul class="tabs">
|
2011-10-13 16:23:16 +00:00
|
|
|
<li class="tabs1"><a href="#">Unglued</a></li>
|
2012-02-07 17:01:00 +00:00
|
|
|
<li class="tabs2"><a href="#">Active</a></li>
|
2012-02-24 16:37:06 +00:00
|
|
|
<li class="tabs3"><a href="#">Wishlisted</a></li>
|
2011-10-13 16:23:16 +00:00
|
|
|
</ul>
|
2012-05-01 13:56:19 +00:00
|
|
|
|
2011-09-29 02:02:33 +00:00
|
|
|
<ul class="book-list-view">
|
|
|
|
<li>View As:</li>
|
2011-09-21 15:11:36 +00:00
|
|
|
<li class="view-list">
|
2011-11-06 23:43:04 +00:00
|
|
|
<a href="#" id="toggle-list">
|
2011-12-27 02:10:32 +00:00
|
|
|
<img src="/static/images/booklist/view-list.png" alt="view list" title="view list" />
|
2011-09-29 02:02:33 +00:00
|
|
|
</a>
|
2011-09-21 15:11:36 +00:00
|
|
|
</li>
|
|
|
|
<li class="view-list">
|
2011-11-06 23:43:04 +00:00
|
|
|
<a href="#" id="toggle-panel">
|
2011-12-27 02:10:32 +00:00
|
|
|
<img src="/static/images/booklist/view-icon.png" alt="view icon" title="view icon" />
|
2011-09-29 02:02:33 +00:00
|
|
|
</a>
|
2011-09-21 15:11:36 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2012-05-01 13:56:19 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2012-02-06 18:53:25 +00:00
|
|
|
<div id="content-block-content">
|
2011-10-21 16:51:07 +00:00
|
|
|
{% ifequal wishlist.works.all.count 0 %}
|
2012-02-29 17:13:29 +00:00
|
|
|
{% ifequal request.user supporter %}
|
|
|
|
<div class="empty-wishlist">
|
2012-03-07 18:23:34 +00:00
|
|
|
|
2012-05-01 13:56:19 +00:00
|
|
|
<div><h2 style="padding-left:35px;">Add a book to your wishlist to get started.</h2><br /><br /></div>
|
2012-03-07 18:23:34 +00:00
|
|
|
|
|
|
|
<div id="js-slide">
|
|
|
|
<div class="js-main">
|
|
|
|
<div class="jsmodule">
|
2012-03-26 19:26:47 +00:00
|
|
|
{% include "slideshow.html" %}
|
2012-03-07 18:23:34 +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">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br /><br /><hr />We'd also love to hear your <a href="/feedback">feedback</a>.
|
2012-02-29 17:13:29 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="empty-wishlist">
|
|
|
|
It looks like {{ supporter.username }} is just getting started, and hasn't added books just yet.<br /><br />
|
|
|
|
{% endifequal %}
|
2011-10-21 16:51:07 +00:00
|
|
|
{% else %}
|
2012-02-22 03:00:23 +00:00
|
|
|
|
2012-02-24 16:37:06 +00:00
|
|
|
{% lazy_paginate 20 works_unglued using "works_unglued" %}
|
2012-02-22 03:00:23 +00:00
|
|
|
{% for work in works_unglued %}
|
|
|
|
<div class="{% cycle 'row1' 'row2' %}">
|
|
|
|
{% with work.last_campaign_status as status %}
|
|
|
|
{% with work.last_campaign.deadline as deadline %}
|
|
|
|
{% with work.googlebooks_id as googlebooks_id %}
|
|
|
|
{% include "book_panel.html" %}
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endwith %}{% endwith %}{% endwith %}
|
2012-02-22 03:00:23 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<div class="pagination content-block-heading tabs-1">
|
2012-02-24 16:37:06 +00:00
|
|
|
{% get_pages %}
|
|
|
|
{% for page in pages %}
|
2012-02-29 18:22:49 +00:00
|
|
|
<a href="{{ page.path }}#1" class="endless_page_link">{{ page.number }}</a>
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endfor %}
|
2012-02-22 03:00:23 +00:00
|
|
|
</div>
|
|
|
|
|
2012-02-24 16:37:06 +00:00
|
|
|
{% lazy_paginate 20 works_active using "works_active" %}
|
2012-02-22 03:00:23 +00:00
|
|
|
{% for work in works_active %}
|
2011-11-22 18:33:57 +00:00
|
|
|
<div class="{% cycle 'row1' 'row2' %}">
|
2011-11-23 17:28:59 +00:00
|
|
|
{% with work.last_campaign_status as status %}
|
|
|
|
{% with work.last_campaign.deadline as deadline %}
|
2012-01-17 21:27:58 +00:00
|
|
|
{% with work.googlebooks_id as googlebooks_id %}
|
2011-11-22 01:21:06 +00:00
|
|
|
{% include "book_panel.html" %}
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endwith %}{% endwith %}{% endwith %}
|
2011-11-22 18:33:57 +00:00
|
|
|
</div>
|
2011-09-29 02:02:33 +00:00
|
|
|
{% endfor %}
|
2012-02-22 03:00:23 +00:00
|
|
|
<div class="pagination content-block-heading tabs-2">
|
2012-02-24 16:37:06 +00:00
|
|
|
{% get_pages %}
|
|
|
|
{% for page in pages %}
|
2012-02-29 18:22:49 +00:00
|
|
|
<a href="{{ page.path }}#2" class="endless_page_link">{{ page.number }}</a>
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endfor %}
|
2011-11-18 04:09:23 +00:00
|
|
|
</div>
|
2012-02-22 03:00:23 +00:00
|
|
|
|
2012-02-24 16:37:06 +00:00
|
|
|
{% lazy_paginate 20 works_wished using "works_wished" %}
|
2012-02-22 03:00:23 +00:00
|
|
|
{% for work in works_wished %}
|
|
|
|
<div class="{% cycle 'row1' 'row2' %}">
|
|
|
|
{% with work.last_campaign_status as status %}
|
|
|
|
{% with work.last_campaign.deadline as deadline %}
|
|
|
|
{% with work.googlebooks_id as googlebooks_id %}
|
|
|
|
{% include "book_panel.html" %}
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endwith %}{% endwith %}{% endwith %}
|
2012-02-22 03:00:23 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<div class="pagination content-block-heading tabs-3">
|
2012-02-24 16:37:06 +00:00
|
|
|
{% get_pages %}
|
|
|
|
{% for page in pages %}
|
2012-02-29 18:22:49 +00:00
|
|
|
<a href="{{ page.path }}#3" class="endless_page_link">{{ page.number }}</a>
|
2012-02-24 16:37:06 +00:00
|
|
|
{% endfor %}
|
2012-02-22 03:00:23 +00:00
|
|
|
</div>
|
|
|
|
|
2011-10-21 16:51:07 +00:00
|
|
|
{% endifequal %}
|
2011-09-21 15:11:36 +00:00
|
|
|
</div>
|
2011-09-29 02:02:33 +00:00
|
|
|
</div>
|
2011-09-21 15:11:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-09-12 05:53:54 +00:00
|
|
|
|
|
|
|
{% endblock %}
|