diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-14 15:56:20 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-14 15:56:20 -0500 |
commit | 3fe4b2189cd4c9741eebc0fa6ac131a5663be535 (patch) | |
tree | e39105cd1c159e2a71b7302409c5b6de5a821dbe /templates | |
parent | ea04e4b3da76bbb74ec895a4995c6c2388146164 (diff) | |
parent | 604c748f8f8dee5e51e2ea5937d1be0b60fb0e7b (diff) |
Merge commit '604c748' (update)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html index 93cf258d..1755d86f 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -32,8 +32,8 @@ {% if app_list %} {% for app in app_list %} <div class="module"> - <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> - <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption> + <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> {% for model in app.models %} <tr> {% if model.perms.change %} @@ -43,7 +43,7 @@ {% endif %} {% if model.perms.add %} - <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td> + <td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td> {% else %} <td> </td> {% endif %} @@ -77,7 +77,7 @@ <ul class="actionlist"> {% for entry in admin_log %} <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}"> - {% if entry.is_deletion %} + {% if entry.is_deletion or not entry.get_admin_url %} {{ entry.object_repr }} {% else %} <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a> |