From: Magnus Hagander Date: Sat, 25 May 2013 18:17:09 +0000 (-0400) Subject: Sync up the admin index template with the one from django 1.4 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=f41356892a6875db3b4b804fedee9eac6b7836ad;p=pgweb.git Sync up the admin index template with the one from django 1.4 --- diff --git a/templates/admin/index.html b/templates/admin/index.html index d51dd700..69cfdefa 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 }}{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}colMS{% endblock %} @@ -19,23 +19,23 @@ Purge contents from varnish. {% if app_list %} {% for app in app_list %}
- - +
{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
+ {% for model in app.models %} - {% if model.perms.change %} + {% if model.admin_url %} {% else %} {% endif %} - {% if model.perms.add %} - + {% if model.add_url %} + {% else %} {% endif %} - {% if model.perms.change %} + {% if model.admin_url %} {% else %} @@ -64,7 +64,7 @@ Purge contents from varnish.
{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
{{ model.name }}{{ model.name }}{% trans 'Add' %}{% trans 'Add' %} {% trans 'Change' %}