Django

Code

root/django/tags/releases/0.96/django/contrib/admin/templates/admin/change_list_results.html

Revision 1791, 445 bytes (checked in by adrian, 3 years ago)

Fixed #1102 -- Fixed some HTML validation errors in admin templates. Thanks, Luke Plant

Line 
1 {% if results %}
2 <table cellspacing="0">
3 <thead>
4 <tr>
5 {% for header in result_headers %}<th{{ header.class_attrib }}>
6 {% if header.sortable %}<a href="{{ header.url }}">{% endif %}
7 {{ header.text|capfirst }}
8 {% if header.sortable %}</a>{% endif %}</th>{% endfor %}
9 </tr>
10 </thead>
11 <tbody>
12 {% for result in results %}
13 <tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
14 {% endfor %}
15 </tbody>
16 </table>
17 {% endif %}
Note: See TracBrowser for help on using the browser.