summaryrefslogtreecommitdiffstats
path: root/templates/admin/index.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-15 19:23:50 +0100
committerDan McGee <dan@archlinux.org>2013-12-15 19:23:50 +0100
commita38665c65272a22a474a85d3af47d64293c8844e (patch)
treeae864b27b3d456f5a462dff0f38a337c14e38218 /templates/admin/index.html
parentbdfa22500f47fcfa0f40de14424c25792995c9e9 (diff)
downloadarchweb-a38665c65272a22a474a85d3af47d64293c8844e.tar.gz
archweb-a38665c65272a22a474a85d3af47d64293c8844e.tar.xz
Admin template updates for Django 1.6
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r--templates/admin/index.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 203206d..fddd55e 100644
--- a/templates/admin/index.html
+++ b/templates/admin/index.html
@@ -31,11 +31,15 @@
{% if app_list %}
{% for app in app_list %}
- <div class="module">
- <table summary="{% blocktrans with name=app.name %}Models available in the {{ name }} application.{% endblocktrans %}">
- <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}</a></caption>
+ <div class="app-{{ app.app_label }} module">
+ <table>
+ <caption>
+ <a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">
+ {% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
+ </a>
+ </caption>
{% for model in app.models %}
- <tr>
+ <tr class="model-{{ model.object_name|lower }}">
{% if model.admin_url %}
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}