From 43a46e90048884b3e8457331c86b96c0ac6a9415 Mon Sep 17 00:00:00 2001 From: Samuel Sutch Date: Sun, 3 Jun 2012 12:44:37 -0700 Subject: [PATCH] Remove the summary attribute of the table In the discussion here: https://code.djangoproject.com/ticket/17138 it was decided that using the caption for this previously non-visible part of the table element was not semantic, so in this patch is moves that summary to the `title` attribute of the `a` tag which when overed over, on most browsers, will show the text. --- django/contrib/admin/templates/admin/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/templates/admin/index.html b/django/contrib/admin/templates/admin/index.html index a8ced39121..91ea0844b1 100644 --- a/django/contrib/admin/templates/admin/index.html +++ b/django/contrib/admin/templates/admin/index.html @@ -15,8 +15,12 @@ {% if app_list %} {% for app in app_list %}
- - +
{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
+ {% for model in app.models %} {% if model.admin_url %}
+ + {% blocktrans with name=app.name %}{{ name }}{% endblocktrans %} + +