diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 00:23:17 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 01:54:40 +0100 |
commit | 0545e3e0ec864eaed4facc94158e3ed9da1dfb2b (patch) | |
tree | d00c14ff93127330911d242332f2666d0ccf6614 /templates/admin | |
parent | 95520ae26485e5c62ea1431ca82a7b42d01b923a (diff) | |
download | archweb-0545e3e0ec864eaed4facc94158e3ed9da1dfb2b.tar.gz archweb-0545e3e0ec864eaed4facc94158e3ed9da1dfb2b.tar.xz |
Django 1.4 admin and admin media changes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html index 1755d86..203206d 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> </td> {% endif %} - {% if model.perms.change %} + {% if model.admin_url %} <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> {% else %} <td> </td> |