2011-09-29 06:23:50 +00:00
|
|
|
{% extends "base.html" %}
|
2011-12-03 00:28:13 +00:00
|
|
|
{% block extra_css %}
|
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">
|
2011-11-23 17:28:59 +00:00
|
|
|
<!-- important! search.css goes last -->
|
|
|
|
<link rel="stylesheet" href="/static/css/search.css">
|
2011-12-03 00:28:13 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block extra_head %}
|
2011-11-07 16:04:09 +00:00
|
|
|
<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 %}
|
|
|
|
|
2011-12-13 16:55:34 +00:00
|
|
|
{% block title %}Google Books search results{% endblock %}
|
2011-09-29 06:23:50 +00:00
|
|
|
|
|
|
|
{% 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">
|
2011-12-13 18:32:29 +00:00
|
|
|
<h2 class="content-heading">Google Books search results</span></h2>
|
2011-09-29 06:23:50 +00:00
|
|
|
<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">
|
2011-11-23 17:28:59 +00:00
|
|
|
{% for work in results %}
|
|
|
|
<div class="{% cycle 'row1' 'row2' %}">
|
|
|
|
{% with work.googlebooks_id as googlebooks_id %}
|
|
|
|
{% include "book_panel.html" %}
|
|
|
|
{% endwith %}
|
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">
|
2011-12-13 18:32:29 +00:00
|
|
|
<input type="text" id="watermarkempty" size="25" onfocus="imgfocusempty()" onblur="imgblurempty(15)" class="inputbox" name="q" value="{{ q }}">
|
2011-11-20 14:20:08 +00:00
|
|
|
<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 %}
|
2011-12-03 00:28:13 +00:00
|
|
|
{% block counter %}{% endblock %}
|