summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Sutch <samuraiblog@gmail.com>2012-06-03 12:44:37 -0700
committerSamuel Sutch <samuraiblog@gmail.com>2012-06-03 12:44:37 -0700
commit43a46e90048884b3e8457331c86b96c0ac6a9415 (patch)
tree6f9dab39c0ed1d7a27040c75be7a3684d6be38a9
parent6522283a712af96a98e99d675b69ca15aadbace8 (diff)
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.
-rw-r--r--django/contrib/admin/templates/admin/index.html8
1 files 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 %}
<div class="module">
- <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>
+ <table>
+ <caption>
+ <a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">
+ {% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
+ </a>
+ </caption>
{% for model in app.models %}
<tr>
{% if model.admin_url %}