Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
138:7ea842744a57 | 139:e04d91babfcf |
---|---|
1 {% extends "admin/index.html" %} | |
2 {% load i18n %} | |
3 {% load custom_admin_tags %} | |
4 {% block content %} | |
5 <div id="content-main"> | |
6 {% admin_dashboard %} | |
7 {% if app_list %} | |
8 {% for app in app_list %} | |
9 <div class="module"> | |
10 <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> | |
11 <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption> | |
12 {% for model in app.models %} | |
13 <tr> | |
14 {% if model.perms.change %} | |
15 <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th> | |
16 {% else %} | |
17 <th scope="row">{{ model.name }}</th> | |
18 {% endif %} | |
19 | |
20 {% if model.perms.add %} | |
21 <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td> | |
22 {% else %} | |
23 <td> </td> | |
24 {% endif %} | |
25 | |
26 {% if model.perms.change %} | |
27 <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> | |
28 {% else %} | |
29 <td> </td> | |
30 {% endif %} | |
31 </tr> | |
32 {% endfor %} | |
33 </table> | |
34 </div> | |
35 {% endfor %} | |
36 {% else %} | |
37 <p>{% trans "You don't have permission to edit anything." %}</p> | |
38 {% endif %} | |
39 </div> | |
40 {% endblock %} |