{% extends "base.html" %} {% load endless %} {% load lang_utils %} {% with request.user.wishlist.works.all as wishlist %} {% block title %} Works {% endblock %} {% block extra_css %} {% endblock %} {% block extra_head %} {% endblock %} {% block topsection %}
{{ activetab }}
{% if facet == 'recommended' %}
Staff Picks
Here are the {% if pub_lang %}{{pub_lang|ez_lang_name}} language {% endif %}books Amanda, Andromeda, Eric, and Raymond are loving lately.
{% else %}
{{ facet|capfirst }}
With your help we're raising money to buy the rights to give these {% if pub_lang %}{{pub_lang|ez_lang_name}} language {% endif %}books to the world.
{% endif %}
{% endblock %} {% block content %}
{% include "explore.html" %}
Enjoy {{ counts.unglued }} Ungluing {{ counts.unglueing }} Wishing for {{ counts.wished }}
  • View As:
  • view list
  • view icon
{% ifequal work_list.count 0 %} {% if facet == 'recommended' %} Check back soon to see what we're recommending. {% else %} There aren't any {{pub_lang|ez_lang_name}} works in this list yet. Why not add your favorite books to your wishlist, so we can feature them here? {% endif %} {% else %} {% comment %} pagination commented out for now because it was causing huge db hits/pageload times. These sets have been limited in views.py to 20 on the theory that people only want to see the MOST popular works, and the other facets are unlikely to produce sets exceeding this anyway. {% lazy_paginate 20 works_unglued using "works_unglued" %} {% endcomment %} {% for work in works_unglued %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% comment %} {% endcomment %} {% comment %} {% lazy_paginate 20 works_active using "works_active" %} {% endcomment %} {% for work in works_active %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% comment %} {% endcomment %} {% comment %} {% lazy_paginate 20 works_wished using "works_wished" %} {% endcomment %} {% for work in works_wished %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% comment %} {% endcomment %} {% endifequal %}
{% endblock %} {% endwith %}