From 2aef97f2cf3923ab9e301d92610655f510693817 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 5 Apr 2006 17:40:46 +0000 Subject: [PATCH] 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 --- django/contrib/admin/media/css/global.css | 3 +++ django/contrib/admin/templates/admin/index.html | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/django/contrib/admin/media/css/global.css b/django/contrib/admin/media/css/global.css index bc3d54fbb0..eef44959f0 100644 --- a/django/contrib/admin/media/css/global.css +++ b/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; } diff --git a/django/contrib/admin/templates/admin/index.html b/django/contrib/admin/templates/admin/index.html index d9388ee733..ca82a86707 100644 --- a/django/contrib/admin/templates/admin/index.html +++ b/django/contrib/admin/templates/admin/index.html @@ -13,14 +13,14 @@ {% if app_list %} {% for app in app_list %}
-

{{ app.name }}

- +
{% for model in app.models %} + {% if model.perms.change %} - + {% else %} - + {% endif %} {% if model.perms.add %}
{{ app.name }}
{{ model.name }}{{ model.name }}{{ model.name }}{{ model.name }}