Ticket #7733: 7733-list_display_links.diff
File 7733-list_display_links.diff, 2.0 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/media/css/global.css
67 67 tr.alt { background:#f6f6f6; } 68 68 .row1 { background:#EDF3FE; } 69 69 .row2 { background:white; } 70 table a.list-display-link { display: block; margin: -5px 0; padding: 5px 0; } 70 71 71 72 /* SORTABLE TABLES */ 72 73 thead th a:link, thead th a:visited { color:#666; display:block; } -
django/contrib/admin/media/css/dashboard.css
4 4 .dashboard .module table th { width:100%; } 5 5 .dashboard .module table td { white-space:nowrap; } 6 6 .dashboard .module table td a { display:block; padding-right:.6em; } 7 .dashboard .module table th a { display:block; margin:-5px 0; padding:5px 0;} 7 8 8 9 /* RECENT ACTIONS MODULE */ 9 10 .module ul.actionlist { margin-left:0; } -
django/contrib/admin/templatetags/admin_list.py
196 196 # Convert the pk to something that can be used in Javascript. 197 197 # Problem cases are long ints (23L) and non-ASCII strings. 198 198 result_id = repr(force_unicode(getattr(result, pk)))[1:] 199 yield mark_safe(u'<%s%s><a href="%s"%s>%s</a></%s>' % \199 yield mark_safe(u'<%s%s><a class="list-display-link" href="%s"%s>%s</a></%s>' % \ 200 200 (table_tag, row_class, url, (cl.is_popup and ' onclick="opener.dismissRelatedLookupPopup(window, %s); return false;"' % result_id or ''), conditional_escape(result_repr), table_tag)) 201 201 else: 202 202 yield mark_safe(u'<td%s>%s</td>' % (row_class, conditional_escape(result_repr)))