summaryrefslogtreecommitdiff
path: root/templates/admin/index.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-23 18:23:17 -0500
committerDan McGee <dan@archlinux.org>2012-03-23 19:54:40 -0500
commit0545e3e0ec864eaed4facc94158e3ed9da1dfb2b (patch)
treed00c14ff93127330911d242332f2666d0ccf6614 /templates/admin/index.html
parent95520ae26485e5c62ea1431ca82a7b42d01b923a (diff)
Django 1.4 admin and admin media changes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r--templates/admin/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 1755d86f..203206d5 100644
--- a/templates/admin/index.html
+++ b/templates/admin/index.html
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}
-{% load i18n %}
+{% load i18n admin_static %}
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}
{% block coltype %}colMS{% endblock %}
@@ -36,19 +36,19 @@
<caption><a href="{{ app.app_url }}" class="section">{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}</a></caption>
{% for model in app.models %}
<tr>
- {% if model.perms.change %}
+ {% if model.admin_url %}
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}
<th scope="row">{{ model.name }}</th>
{% endif %}
- {% if model.perms.add %}
+ {% if model.add_url %}
<td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
- {% if model.perms.change %}
+ {% if model.admin_url %}
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
{% else %}
<td>&nbsp;</td>