annotate gpp/templates/admin/custom_index.html @ 139:e04d91babfcf

Close #30. Create an admin dashboard to see pending content and requests for admin action.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Nov 2009 22:33:15 +0000
parents
children
rev   line source
bgneal@139 1 {% extends "admin/index.html" %}
bgneal@139 2 {% load i18n %}
bgneal@139 3 {% load custom_admin_tags %}
bgneal@139 4 {% block content %}
bgneal@139 5 <div id="content-main">
bgneal@139 6 {% admin_dashboard %}
bgneal@139 7 {% if app_list %}
bgneal@139 8 {% for app in app_list %}
bgneal@139 9 <div class="module">
bgneal@139 10 <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
bgneal@139 11 <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
bgneal@139 12 {% for model in app.models %}
bgneal@139 13 <tr>
bgneal@139 14 {% if model.perms.change %}
bgneal@139 15 <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
bgneal@139 16 {% else %}
bgneal@139 17 <th scope="row">{{ model.name }}</th>
bgneal@139 18 {% endif %}
bgneal@139 19
bgneal@139 20 {% if model.perms.add %}
bgneal@139 21 <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
bgneal@139 22 {% else %}
bgneal@139 23 <td>&nbsp;</td>
bgneal@139 24 {% endif %}
bgneal@139 25
bgneal@139 26 {% if model.perms.change %}
bgneal@139 27 <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
bgneal@139 28 {% else %}
bgneal@139 29 <td>&nbsp;</td>
bgneal@139 30 {% endif %}
bgneal@139 31 </tr>
bgneal@139 32 {% endfor %}
bgneal@139 33 </table>
bgneal@139 34 </div>
bgneal@139 35 {% endfor %}
bgneal@139 36 {% else %}
bgneal@139 37 <p>{% trans "You don't have permission to edit anything." %}</p>
bgneal@139 38 {% endif %}
bgneal@139 39 </div>
bgneal@139 40 {% endblock %}