Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 43a46e90048884b3e8457331c86b96c0ac6a9415 1 parent 6522283
Samuel Sutch authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 django/contrib/admin/templates/admin/index.html
8 django/contrib/admin/templates/admin/index.html
View
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.