2011-09-29 06:23:50 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block extra_head %}
|
2011-10-14 05:23:46 +00:00
|
|
|
<script type="text/javascript" src="/static/js/wishlist.js"></script>
|
2011-10-18 01:35:58 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/book_list.css">
|
2011-09-29 06:23:50 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}Search Results{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div id="main-container">
|
|
|
|
<div class="js-main">
|
|
|
|
|
|
|
|
{% include "explore.html" %}
|
|
|
|
|
|
|
|
<div id="js-maincol-fr">
|
|
|
|
<div class="js-maincol-inner">
|
|
|
|
<div class="content-block">
|
|
|
|
<div class="content-block-heading">
|
|
|
|
<h2 class="content-heading">Search Results</span></h2>
|
|
|
|
<ul class="book-list-view">
|
|
|
|
<li>View As:</li>
|
|
|
|
<li class="view-list">
|
|
|
|
<a href="#view-list">
|
|
|
|
<img src="/static/images/booklist/view-list.png" align="view list" title="view list" height="21" width="24" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="view-list">
|
|
|
|
<a href="#view-icon">
|
|
|
|
<img src="/static/images/booklist/view-icon.png" align="view icon" title="view icon" height="22" width="22" />
|
|
|
|
</a>
|
|
|
|
</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">
|
|
|
|
{% for result in results %}
|
2011-10-18 02:32:31 +00:00
|
|
|
<div class="book-list {% cycle 'row1' 'row2' %}">
|
2011-09-29 06:23:50 +00:00
|
|
|
<div class="book-thumb">
|
|
|
|
<a href="#"><img src="{{ result.image }}" alt="{{ result.title }}" title="{{ result.title }}" /></a>
|
|
|
|
</div>
|
|
|
|
<div class="book-name">
|
|
|
|
<span>
|
|
|
|
{{ result.title }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2011-10-18 02:32:31 +00:00
|
|
|
{% if request.user.is_anonymous %}
|
|
|
|
<div class="create-account">
|
|
|
|
<span>Add to Wishlist</span>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2011-09-29 06:23:50 +00:00
|
|
|
<div class="add-wishlist">
|
|
|
|
{% if result.on_wishlist %}
|
2011-10-18 02:32:31 +00:00
|
|
|
<span class="on-wishlist">On Your Wishlist!</span>
|
2011-09-29 06:23:50 +00:00
|
|
|
{% else %}
|
2011-10-10 16:57:10 +00:00
|
|
|
<span id="{{ result.googlebooks_id }}">Add to Wishlist</span>
|
2011-09-29 06:23:50 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2011-10-18 02:32:31 +00:00
|
|
|
{% endif %}
|
2011-09-29 06:23:50 +00:00
|
|
|
<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>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|