regluit/frontend/templates/faceted_list.html

112 lines
5.3 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
{% load url from future %}
2014-11-18 18:33:17 +00:00
{% load endless %}
{% load lang_utils %}
2014-12-02 05:10:55 +00:00
{% block title %} Browse Free Books {% endblock %}
2014-11-18 18:33:17 +00:00
{% block extra_css %}
<link type="text/css" rel="stylesheet" href="/static/css/supporter_layout.css" />
<link type="text/css" rel="stylesheet" href="/static/css/book_list.css" />
<link type="text/css" rel="stylesheet" href="/static/css/book_panel2.css" />
<link type="text/css" rel="stylesheet" href="/static/css/lists.css" />
{% endblock %}
{% block extra_head %}
<script type="text/javascript" src="/static/js/wishlist.js"></script>
<script type="text/javascript" src="{{ jquery_ui_home }}"></script>
<script type="text/javascript" src="/static/js/greenpanel.js"></script>
<script type="text/javascript" src="/static/js/toggle.js"></script>
<script type="text/javascript" src="/static/js/hijax_unglued.js"></script>
<script type="text/javascript" src="/static/js/tabs.js"></script>
2014-12-06 20:07:19 +00:00
<link rel="related"
href="/api/opds/{{ path }}/?order_by={{ order_by }}"
type="application/atom+xml;profile=opds-catalog"
title="OPDS Catalog for Unglue.it Free Books" />
2015-08-27 19:23:52 +00:00
<link rel="related"
href="/api/onix/{{ path }}/?max=100"
type="text/xml"
title="ONIX feed for Unglue.it Free Books" />
2014-11-18 18:33:17 +00:00
{% endblock %}
{% block topsection %}
<div id="locationhash">#1</div>
{% endblock %}
{% block content %}
<div id="main-container">
<div class="js-main">
<div id="js-leftcol">
2014-11-21 02:11:15 +00:00
{% include "refine.html" %}
2014-11-18 18:33:17 +00:00
{% include "explore.html" %}
</div>
<div id="js-maincol-fr">
<div class="js-maincol-inner">
2014-11-21 02:11:15 +00:00
<div id="facet_block">
{% for facet in vertex.facets %}
{% include facet.template %}
{% endfor %}
</div>
2014-11-18 18:33:17 +00:00
<div id="content-block">
<div class="content-block-heading unglued" id="tabs">
<ul class="book-list-view">
<li>View As:</li>
<li class="view-list">
2014-11-19 02:54:47 +00:00
<a href="#" id="toggle-list" class="chosen" >
2014-11-18 18:33:17 +00:00
<img src="/static/images/booklist/view-list.png" alt="view list" title="view list" height="21" width="24" />
</a>
</li>
<li class="view-list">
<a href="#" id="toggle-panel">
<img src="/static/images/booklist/view-icon.png" alt="view icon" title="view icon" height="22" width="22" />
</a>
</li>
</ul>
2014-11-18 21:54:19 +00:00
<ul class="book-list-view">
<li>Sort by:</li>
2015-04-28 03:24:02 +00:00
<li class="view-list"><a {% if order_by = 'popular' %}class="chosen" {% endif %}href="{% url 'faceted_list' path %}?{% if setkw %}setkw={{setkw}}&amp;{% endif %}order_by=popular">popular</a></li>
<li class="view-list"><a {% if order_by = 'newest' %}class="chosen" {% endif %}href="{% url 'faceted_list' path %}?{% if setkw %}setkw={{setkw}}&amp;{% endif %}order_by=newest">newest</a></li>
<li class="view-list"><a {% if order_by = 'title' %}class="chosen" {% endif %}href="{% url 'faceted_list' path %}?{% if setkw %}setkw={{setkw}}&amp;{% endif %}order_by=title">title</a></li>
2014-11-18 21:54:19 +00:00
</ul>
2014-11-18 18:33:17 +00:00
</div>
<div id="content-block-content">
<div id="books-go-here">
{% ifequal work_list.count 0 %}
There aren't any {{ pub_lang|ez_lang_name }} {% if cc.is_cc %}Creative Commons{% endif %} {{ license }} works in this list. Why don't you add some? Use the "More" tab on a work, there are links there for adding ebooks.
{% else %}
{% lazy_paginate 20 work_list using "work_list" %}
{% for work in work_list %}
2015-04-11 12:25:41 +00:00
{% if view_as == 'plain' %}
{% include "book_plain.html" %}
{% else %}
{% with work.googlebooks_id as googlebooks_id %}
2014-11-18 18:33:17 +00:00
<div class="{% cycle 'row1' 'row2' %}">
2015-04-11 12:25:41 +00:00
{% include "book_panel.html" %}
2014-11-18 18:33:17 +00:00
</div>
2015-04-11 12:25:41 +00:00
{% endwith %}
{% endif %}
2014-11-18 18:33:17 +00:00
{% endfor %}
<div class="pagination content-block-heading tabs-{{ activetab }}">
{% get_pages %}
{% for page in pages %}
<a href="{{ page.path }}#1" class="endless_page_link">{{ page.number }}</a>
{% endfor %}
</div>
{% endifequal %}
</div>
</div>
</div>
{% if request.user.libpref %}
<div id="libtools">
<p>for libraries...</p>
2015-04-28 03:24:02 +00:00
<form method="GET" action="{% url 'faceted_list_marc' path %}">
2014-11-18 18:33:17 +00:00
{% include 'marc_form.html' %}
<input type="submit" name="submit" value="download MARC" id="submit">
</form>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}