2011-09-12 05:53:54 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2011-09-21 15:11:36 +00:00
|
|
|
{% block title %} — {{ supporter.username }}{% endblock %}
|
|
|
|
|
2011-09-29 11:44:03 +00:00
|
|
|
{% block extra_head %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(".remove-wishlist").each(function (index, element) {
|
|
|
|
$(element).click(function() {
|
|
|
|
var span = $(element).find("span");
|
|
|
|
var work_id = span.attr('id')
|
|
|
|
$.post('/wishlist/', {'remove_work_id': work_id}, function(data) {
|
|
|
|
var book = $(element).parent();
|
|
|
|
book.fadeOut();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2011-09-12 05:53:54 +00:00
|
|
|
{% block content %}
|
2011-09-21 15:11:36 +00:00
|
|
|
<div id="main-container">
|
|
|
|
<div class="js-main">
|
|
|
|
|
|
|
|
{% include "explore.html" %}
|
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">
|
2011-09-29 02:02:33 +00:00
|
|
|
<div class="content-block">
|
|
|
|
<div class="content-block-heading">
|
2011-09-29 16:42:19 +00:00
|
|
|
<h2 class="content-heading">
|
|
|
|
{% ifequal supporter request.user %}
|
|
|
|
Your Wishlist
|
|
|
|
{% else %}
|
|
|
|
{{ supporter.username }} Wishlist
|
|
|
|
{% endifequal %}
|
|
|
|
</h2>
|
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-09-29 02:02:33 +00:00
|
|
|
<a href="#view-list">
|
|
|
|
<img src="/static/images/booklist/view-list.png" align="view list" title="view list" height="21" width="24" />
|
|
|
|
</a>
|
2011-09-21 15:11:36 +00:00
|
|
|
</li>
|
|
|
|
<li class="view-list">
|
2011-09-29 02:02:33 +00:00
|
|
|
<a href="#view-icon">
|
|
|
|
<img src="/static/images/booklist/view-icon.png" align="view icon" title="view icon" height="22" width="22" />
|
|
|
|
</a>
|
2011-09-21 15:11:36 +00:00
|
|
|
</li>
|
|
|
|
<li class="view-list">
|
|
|
|
<a href="#view-icon-small">
|
|
|
|
<img src="/static/images/booklist/view-small-icon.png" align="view icon small" title="view icon small" height="22" width="22" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="content-block-content">
|
2011-09-29 06:23:50 +00:00
|
|
|
{% for work in wishlist.works.all %}
|
|
|
|
<div class="book-list row1">
|
|
|
|
<div class="book-thumb">
|
|
|
|
<a href="#"><img src="{{ work.cover_image_small }}" alt="Book name" title="book name" /></a>
|
|
|
|
</div>
|
|
|
|
<div class="book-name">
|
|
|
|
<span>
|
|
|
|
{{ work.title }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2011-09-29 11:44:03 +00:00
|
|
|
<div class="remove-wishlist">
|
|
|
|
<span id="{{ work.id }}">Remove from Wishlist</span>
|
2011-09-29 06:23:50 +00:00
|
|
|
</div>
|
|
|
|
<div class="booklist-status">
|
|
|
|
<span class="booklist-status-text">Status: In Progress</span>
|
|
|
|
<span class="booklist-status-img">
|
|
|
|
<img src="/static/images/booklist/icon1.png" title="book list status" alt="book list status" />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="unglue-this none">
|
|
|
|
<div class="unglue-this-inner1">
|
|
|
|
<div class="unglue-this-inner2">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-09-29 02:02:33 +00:00
|
|
|
{% endfor %}
|
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 %}
|
2011-09-21 15:11:36 +00:00
|
|
|
|