2011-09-29 06:23:50 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block extra_head %}
|
2011-10-18 01:35:58 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/book_list.css">
|
2011-11-07 16:04:09 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/book_panel.css">
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/static/js/wishlist.js"></script>
|
2011-11-09 01:34:15 +00:00
|
|
|
<script type="text/javascript" src="/static/js/greenpanel.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/toggle.js"></script>
|
2011-09-29 06:23:50 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}Search Results{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<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-29 06:23:50 +00:00
|
|
|
|
|
|
|
<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">
|
2011-11-07 14:59:23 +00:00
|
|
|
<a href="#" id="toggle-list">
|
2011-09-29 06:23:50 +00:00
|
|
|
<img src="/static/images/booklist/view-list.png" align="view list" title="view list" height="21" width="24" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="view-list">
|
2011-11-07 14:59:23 +00:00
|
|
|
<a href="#" id="toggle-panel">
|
2011-09-29 06:23:50 +00:00
|
|
|
<img src="/static/images/booklist/view-icon.png" align="view icon" title="view icon" height="22" width="22" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="content-block-content">
|
|
|
|
{% for result in results %}
|
2011-11-07 20:11:52 +00:00
|
|
|
<div class="listview tabs tabs-1">
|
2011-11-07 14:59:23 +00:00
|
|
|
<div class="listview book-list {% cycle 'row1' 'row2' %}">
|
|
|
|
<div class="listview book-thumb">
|
2011-09-29 06:23:50 +00:00
|
|
|
<a href="#"><img src="{{ result.image }}" alt="{{ result.title }}" title="{{ result.title }}" /></a>
|
|
|
|
</div>
|
2011-11-07 14:59:23 +00:00
|
|
|
<div class="listview book-name">
|
2011-11-11 20:09:39 +00:00
|
|
|
<div class="title">
|
2011-11-22 01:12:13 +00:00
|
|
|
<a href="{% url googlebooks result.googlebooks_id %}">{{ result.title }}</a>
|
2011-11-11 20:09:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="listview author {{ result.author }}">{{ result.author }}</div>
|
2011-09-29 06:23:50 +00:00
|
|
|
</div>
|
2011-10-18 02:32:31 +00:00
|
|
|
{% if request.user.is_anonymous %}
|
2011-11-07 14:59:23 +00:00
|
|
|
<div class="listview create-account">
|
2011-10-18 02:32:31 +00:00
|
|
|
<span>Add to Wishlist</span>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2011-11-07 14:59:23 +00:00
|
|
|
<div class="listview add-wishlist">
|
2011-09-29 06:23:50 +00:00
|
|
|
{% 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-11-07 14:59:23 +00:00
|
|
|
<div class="listview booklist-status">
|
2011-11-11 20:09:39 +00:00
|
|
|
<span class="booklist-status-label">Status: </span><span class="booklist-status-text">{{ result.last_campaign_status }}</span>
|
2011-11-07 14:59:23 +00:00
|
|
|
</div>
|
|
|
|
<div class="listview icons">
|
2011-09-29 06:23:50 +00:00
|
|
|
<span class="booklist-status-img">
|
2011-11-07 16:04:09 +00:00
|
|
|
<img src="/static/images/images/icon-book-37by25-4.png" title="book list status" alt="book list status" />
|
2011-09-29 06:23:50 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
2011-11-07 20:39:02 +00:00
|
|
|
<div class="listview ebooks">
|
|
|
|
{% if result.epub %}
|
2011-11-11 20:09:39 +00:00
|
|
|
<span class="listview boolist-ebook">
|
2011-11-07 20:39:02 +00:00
|
|
|
<a href="{{ result.epub }}">epub</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.pdf %}
|
2011-11-11 20:09:39 +00:00
|
|
|
<span class="listview boolist-ebook">
|
2011-11-07 20:39:02 +00:00
|
|
|
<a href="{{ result.pdf }}">pdf</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2011-09-29 06:23:50 +00:00
|
|
|
<div class="unglue-this none">
|
|
|
|
<div class="unglue-this-inner1">
|
|
|
|
<div class="unglue-this-inner2">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-11-07 20:11:52 +00:00
|
|
|
</div>
|
2011-11-20 14:20:08 +00:00
|
|
|
{% empty %}
|
|
|
|
<h2>Sorry, couldn't find that!</h2>
|
|
|
|
<div class="js-search">
|
|
|
|
<div class="js-search-inner">
|
|
|
|
<form action="{% url search %}" method="get">
|
|
|
|
<input type="text" placeholder="Search for a book..." size="25" class="inputbox" name="q">
|
|
|
|
<input type="button" onclick="this.form.searchword.focus();" class="button" value="Search">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-09-29 06:23:50 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|