diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 02:19:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 02:19:34 +0100 |
commit | 822898e57bc6d4e008ef58da309857e9ef8c98e6 (patch) | |
tree | 1af0836c927b87e2249628d47cdfefe77c3b18fd /templates/admin/index.html | |
parent | ea87160c397fe1daf63851f0ed0be146bea79196 (diff) | |
parent | 8e10699d53281be53c88a3695de6aa496e084dc6 (diff) | |
download | archweb-822898e57bc6d4e008ef58da309857e9ef8c98e6.tar.gz archweb-822898e57bc6d4e008ef58da309857e9ef8c98e6.tar.xz |
Merge branch 'django14'
Conflicts:
templates/releng/result_section.html
Diffstat (limited to 'templates/admin/index.html')
-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> |