summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-15 12:23:50 -0600
committerDan McGee <dan@archlinux.org>2013-12-15 12:23:50 -0600
commita38665c65272a22a474a85d3af47d64293c8844e (patch)
treeae864b27b3d456f5a462dff0f38a337c14e38218
parentbdfa22500f47fcfa0f40de14424c25792995c9e9 (diff)
Admin template updates for Django 1.6
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/admin/index.html12
-rw-r--r--templates/devel/admin_log.html2
2 files changed, 9 insertions, 5 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 203206d5..fddd55e5 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 %}
diff --git a/templates/devel/admin_log.html b/templates/devel/admin_log.html
index 1629c104..05130491 100644
--- a/templates/devel/admin_log.html
+++ b/templates/devel/admin_log.html
@@ -48,7 +48,7 @@
{% if entry.is_deletion %}
{{ entry.object_repr }}
{% else %}
- <a href="/admin/{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
+ <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
{% endif %}
</td>
<td>{{ entry.change_message }}</td>