{% extends "admin/_base.html" %} {#% block breadcrumbs %} {% endblock %} {% block title %} {{ query.model.meta.label_plural.capitalize() }} admin {% endblock %} {% block heading %} Choose {{ query.model.meta.label }} to change {% endblock heading %#} {% block content %}

Add {{ query.doc_class.meta.get_label() }}

{{ query.count() }} {{ query.doc_class.meta.get_label_plural() }}

{% if search_enabled %}
{% endif %} {# TODO: make a simple table manager to handle all this stuff in Python #} {% for list_name in list_names %} {% if list_name == '__unicode__' %} {% else %} {% endif %} {% endfor %} {% set row_class = cycler('odd', 'even') %} {% for object in pagination.entries %} {% for list_name in list_names %} {% endfor %} {% endfor %}
{{ query.doc_class.meta.get_label().capitalize() }} {# TODO: remove the hacks, implement sorting properly #} {% if request.values.sort_by == list_name %} ↑ {% else %} ↓ {% endif %} {{ query.doc_class.meta.labels.get(list_name) or list_name }}
{% if loop.first %} {% endif %} {% if list_name == '__unicode__' %} {{ object }} {% else %} {% if object|attr(list_name) is none %} missing {% elif object|attr(list_name) == '' %} empty {% else %} {{ object|attr(list_name)|escape }} {% endif %} {% endif %} {% if loop.first %} {% endif %}
{% endblock %}