2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
2016-05-11 14:41:50 +00:00
2018-04-20 01:25:12 +00:00
{% load el_pagination_tags %}
2013-12-26 00:38:18 +00:00
{% load lang_utils %}
2018-01-30 17:47:51 +00:00
{% load sass_tags %}
2013-12-26 00:38:18 +00:00
2014-05-08 15:54:09 +00:00
{% block title %} Creative Commons {{license}} Books {% if pub_lang %} in {{pub_lang|ez_lang_name}}{% endif %}{% endblock %}
2013-12-26 00:38:18 +00:00
{% block extra_css %}
2018-01-30 20:31:20 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/supporter_layout.scss' %}" / >
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/book_list.scss' %}" / >
2018-01-30 17:47:51 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/book_panel2.scss' %}" / >
2018-01-30 20:31:20 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/lists.scss' %}" / >
2013-12-26 00:38:18 +00:00
{% endblock %}
{% block extra_head %}
< script type = "text/javascript" src = "/static/js/wishlist.js" > < / script >
< script type = "text/javascript" src = "{{ jquery_ui_home }}" > < / script >
2018-11-03 21:23:07 +00:00
< script type = "text/javascript" src = "/static/js/greenpanel.js" > < / script >
2013-12-26 00:38:18 +00:00
< 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 >
{% endblock %}
{% block topsection %}
< div id = "locationhash" > #1< / div >
< 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" >
< div id = "user-block1" >
2014-05-08 15:54:09 +00:00
< div id = "block-intro-text" > < br / > < span class = "special-user-name" > Ready to Read< / span > < / div >
2013-12-26 00:38:18 +00:00
< / div >
2017-07-27 14:33:13 +00:00
< div class = "user-block24" > < p style = "font-size: larger;" > < span class = "user-short-info" > These {% if pub_lang %}{{ pub_lang|ez_lang_name }} language {% endif %}{% if cc.is_cc %}< a href = "https://creativecommons.org/" > Creative Commons< / a > {% endif %} {% if license %}< a href = "{{cc.url}}" > {{ license }}< / a > {% endif %} {%if cc.is_pd %}ebooks are ready to read - they belong to all of us!{% else %}licensed ebooks are ready to read - the people who created them want you to read and share them.{% endif %}< / span > < / p >
2014-05-08 15:54:09 +00:00
{% if license %}< p style = "font-size: smaller;" > < a href = "{{cc.url}}" > < img src = "{{cc.badge}}" alt = "badge for {{license}}" style = "float:left;padding:0.5em" / > < / a > {{cc.description}}
< / p > {% endif %}
2013-12-26 00:38:18 +00:00
< / div >
< div class = "user-block3" >
< / div >
< / 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" >
< 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" >
< 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 >
< / ul >
< / div >
< div id = "content-block-content" >
< div id = "books-go-here" >
{% ifequal work_list.count 0 %}
2014-08-06 21:14:09 +00:00
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.
2013-12-26 00:38:18 +00:00
{% else %}
{% lazy_paginate 20 work_list using "work_list" %}
{% for work in work_list %}
< div class = "{% cycle 'row1' 'row2' %}" >
{% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
{% endwith %}
< / div >
{% 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 >
2014-10-27 15:55:46 +00:00
< / 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 'cc_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 >
< / div >
{% endif %}
2013-12-26 00:38:18 +00:00
< / div >
< / div >
< / div >
< / div >
{% endblock %}