{% extends 'base.html' %} {% load endless %} {% load sass_tags %} {% load truncatechars %} {% block title %} — {{ library }}{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %} {% block extra_head %} {% endblock %} {% block topsection %}
{% ifequal activetab '#3' %}#1{% else %}{{ activetab }}{% endifequal %}
{% ifequal supporter request.user %}
You are logged in as the administrator of {{ library }}
{% endifequal %}
{% if library.user.profile.badges.all %} {% for badge in library.user.profile.badges.all %} {{ badge.description }} {% endfor %} {% endif %}
{% if request.user.is_authenticated %} {% if library.group in request.user.groups.all %}
{{ library }} is {{ request.user }}'s Library!
{% else %}
{% include library.join_template %}
{% endif %} {% else %}

To join a library or borrow books, you'll need to sign in or create an account.

{% endif %}
{% endblock %} {% block content %}
{% include "explore.html" %}
{% if wishlist %}
{% if not works_active.count and not works_unglued.count %} {% ifequal request.user supporter %}

Your Unglue.it faves will be listed here.

The "Available" tab will show all the books you have licensed though Unglue.it. The "Unglued" tab will show public domain, creative commons, and unglued titles that you add to your list of faves

{% else %}
It looks like {{ library }} is just getting started, and isn't offering any books just yet.

{% endifequal %} {% else %} {% if request.user.is_anonymous %}
{% if works_unglued %} {{ supporter }} wants you to know about these free books. Find out why. {% else %} {{ supporter }} isn't promoting any free books yet. Find out how you can. {% endif %}
{% if works_active %} {{ supporter }} is helping to make these books free. Find out how. {% else %} {{ supporter }} isn't ungluing books at the moment. Find out how you can. {% endif %}
{% if works_wished %} {{ supporter }} wants these books to be free. Find out how to help. {% else %} {{ supporter }} hasn't decided which books to give the world yet. Learn more. {% endif %}
{% endif %} {% lazy_paginate 20 works_unglued using "works_unglued" %} {% for work in works_unglued %}
{% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}
{% endfor %} {% lazy_paginate 20 works_active using "works_active" %} {% for work in works_active %}
{% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}
{% endfor %} {% endif %}
{% endif %}
{% endblock %}