1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: fixed #1585: admin index tables now have 25% more semantic goodness

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-04-05 17:40:46 +00:00
parent 291e309d8d
commit 2aef97f2cf
2 changed files with 7 additions and 4 deletions

View File

@ -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 File

@ -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 %}