Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: fixed #1585: admin index tables now have 25% more sema…

…ntic goodness

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2aef97f2cf3923ab9e301d92610655f510693817 1 parent 291e309
@jacobian jacobian authored
View
3  django/contrib/admin/media/css/global.css
@@ -76,6 +76,9 @@ thead th, tfoot td { color:#666; padding:2px 5px; font-size:11px; background:#e1
tfoot td { border-bottom:none; border-top:1px solid #ddd; }
thead th:first-child, tfoot td:first-child { border-left:none !important; }
.module table { border-collapse: collapse; }
+.module table tr th { width: 100%; }
+.module table tr td a { padding-right:1em; display:block; }
+.module table caption { border: none; }
thead th.optional { font-weight:normal !important; }
fieldset table { border-right:1px solid #eee; }
tr.row-label td { font-size:9px; padding-top:2px; padding-bottom:0; border-bottom:none; color:#666; margin-top:-1px; }
View
8 django/contrib/admin/templates/admin/index.html
@@ -13,14 +13,14 @@
{% if app_list %}
{% for app in app_list %}
<div class="module">
- <h2>{{ app.name }}</h2>
- <table>
+ <table summary="{% blocktrans %}Models available in {{ app.name }} application.{% endblocktrans %}">
{% for model in app.models %}
+ <caption>{{ app.name }}</caption>
<tr>
{% if model.perms.change %}
- <th><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
+ <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}
- <th>{{ model.name }}</th>
+ <th scope="row">{{ model.name }}</th>
{% endif %}
{% if model.perms.add %}
Please sign in to comment.
Something went wrong with that request. Please try again.