2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
2016-05-11 14:41:50 +00:00
2011-12-03 00:29:23 +00:00
{% load endless %}
2012-07-21 20:26:16 +00:00
{% load lang_utils %}
2011-12-03 00:29:23 +00:00
{% block title %} Works {% endblock %}
{% 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" / >
2013-03-19 18:53:11 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/book_panel2.css" / >
2012-03-19 19:52:09 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/lists.css" / >
2011-12-03 00:29:23 +00:00
{% endblock %}
{% block extra_head %}
< script type = "text/javascript" src = "/static/js/wishlist.js" > < / script >
2012-03-08 02:47:40 +00:00
< script type = "text/javascript" src = "{{ jquery_ui_home }}" > < / script >
2011-12-03 00:29:23 +00:00
< 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/tabs.js" > < / script >
{% endblock %}
{% block topsection %}
2012-03-02 14:40:10 +00:00
< div id = "locationhash" > {{ activetab }}< / div >
2011-12-03 00:29:23 +00:00
< div id = "js-topsection" >
< div class = "js-main" >
< div class = "js-topnews" >
< div class = "js-topnews1" >
< div class = "js-topnews2" >
< div class = "js-topnews3" >
< div class = "user-block" >
2013-03-07 02:54:48 +00:00
{% block userblock %}
< div id = "user-block1" >
2013-03-26 18:53:48 +00:00
{% block userblock1 %}< div id = "block-intro-text" > < span class = "special-user-name" > {{ facet|capfirst }}< / span > < / div > {% endblock %}
2012-05-08 18:28:06 +00:00
< / div >
2013-03-07 02:54:48 +00:00
< div class = "user-block2" >
{% block userblock2 %}
2013-09-26 13:49:39 +00:00
< span class = "user-short-info" > With your help we're raising money to give these {% if pub_lang %}{{pub_lang|ez_lang_name}} language {% endif %}books to the world.< / span >
2013-03-07 02:54:48 +00:00
{% endblock %}
2012-05-08 18:28:06 +00:00
< / div >
< div class = "user-block3" >
2013-03-26 18:53:48 +00:00
{% block userblock3 %}{% endblock %}
2012-05-08 18:28:06 +00:00
< / div >
2013-03-07 02:54:48 +00:00
{% endblock %}
2011-12-03 00:29:23 +00:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endblock %}
{% block content %}
< div id = "main-container" >
< div class = "js-main" >
< div id = "js-leftcol" >
{% include "explore.html" %}
< / div >
< div id = "js-maincol-fr" >
< div class = "js-maincol-inner" >
2012-02-06 18:53:25 +00:00
< div id = "content-block" >
2012-02-29 18:15:38 +00:00
< div class = "content-block-heading wantto" id = "tabs" >
2011-12-03 00:29:23 +00:00
< ul class = "tabs" >
2013-01-02 20:35:42 +00:00
< li class = "tabs1" > < a href = "#" > Unglued< br / > ({{ counts.unglued }})< / a > < / li >
2014-02-20 04:16:28 +00:00
< li class = "tabs2" > < a href = "#" > Ungluing< br / > ({{ counts.unglueing }})< / a > < / li >
< li class = "tabs3" > < a href = "#" > Not Yet< br / > ({{ counts.wished }})< / a > < / li >
2013-01-02 20:35:42 +00:00
< / ul >
< ul class = "book-list-view" >
< li > View As:< / li >
< li class = "view-list" >
< a href = "#" id = "toggle-list" >
< 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 >
2011-12-03 00:29:23 +00:00
< / ul >
< / div >
2012-02-06 18:53:25 +00:00
< div id = "content-block-content" >
2011-12-03 00:29:23 +00:00
{% ifequal work_list.count 0 %}
2013-03-07 02:54:48 +00:00
{% block noworks %}
2013-08-18 22:10:25 +00:00
There aren't any {{ pub_lang|ez_lang_name }} works in this list yet. {% block add_more %}Why not add your favorite books to your list, so we can feature them here?{% endblock %}
2013-03-07 02:54:48 +00:00
{% endblock %}
2011-12-03 00:29:23 +00:00
{% else %}
2012-02-29 18:15:38 +00:00
{% lazy_paginate 20 works_unglued using "works_unglued" %}
{% for work in works_unglued %}
< div class = "{% cycle 'row1' 'row2' %}" >
2014-04-30 01:51:52 +00:00
{% with googlebooks_id=work.googlebooks_id tab_override='tabs-1' %}
2012-02-29 18:15:38 +00:00
{% include "book_panel.html" %}
2013-03-11 20:23:52 +00:00
{% endwith %}
2012-02-29 18:15:38 +00:00
< / div >
{% endfor %}
< div class = "pagination content-block-heading tabs-1" >
{% get_pages %}
{% for page in pages %}
2012-02-29 19:41:34 +00:00
< a href = "{{ page.path }}#1" class = "endless_page_link" > {{ page.number }}< / a >
2012-02-29 18:15:38 +00:00
{% endfor %}
< / div >
{% lazy_paginate 20 works_active using "works_active" %}
{% for work in works_active %}
< div class = "{% cycle 'row1' 'row2' %}" >
2014-04-30 01:51:52 +00:00
{% with googlebooks_id=work.googlebooks_id tab_override='tabs-2' %}
2012-02-29 18:15:38 +00:00
{% include "book_panel.html" %}
2013-03-11 20:23:52 +00:00
{% endwith %}
2012-02-29 18:15:38 +00:00
< / div >
{% endfor %}
< div class = "pagination content-block-heading tabs-2" >
{% get_pages %}
{% for page in pages %}
2012-02-29 19:41:34 +00:00
< a href = "{{ page.path }}#2" class = "endless_page_link" > {{ page.number }}< / a >
2012-02-29 18:15:38 +00:00
{% endfor %}
< / div >
{% lazy_paginate 20 works_wished using "works_wished" %}
{% for work in works_wished %}
< div class = "{% cycle 'row1' 'row2' %}" >
2014-04-30 01:51:52 +00:00
{% with googlebooks_id=work.googlebooks_id tab_override='tabs-3' %}
2012-02-29 18:15:38 +00:00
{% include "book_panel.html" %}
2013-03-11 20:23:52 +00:00
{% endwith %}
2012-02-29 18:15:38 +00:00
< / div >
{% endfor %}
< div class = "pagination content-block-heading tabs-3" >
{% get_pages %}
{% for page in pages %}
2012-02-29 19:41:34 +00:00
< a href = "{{ page.path }}#3" class = "endless_page_link" > {{ page.number }}< / a >
2012-02-29 18:15:38 +00:00
{% endfor %}
< / div >
2011-12-03 00:29:23 +00:00
{% endifequal %}
< / div >
< / div >
2014-10-27 15:55:46 +00:00
{% if request.user.libpref %}
< div id = "libtools" >
< p > for libraries...< / p >
{% block marcform %}
2015-04-28 03:24:02 +00:00
< form method = "GET" action = "{% url 'work_list_marc' facet %}" >
2014-10-27 15:55:46 +00:00
{% include 'marc_form.html' %}
< input type = "submit" name = "submit" value = "download MARC" id = "submit" >
< / form >
{% endblock %}
< / div >
{% endif %}
2011-12-03 00:29:23 +00:00
< / div >
< / div >
< / div >
< / div >
{% endblock %}