/django/contrib/admin/templates/mako/admin/change_list_results.html
https://code.google.com/p/mango-py/ · HTML · 43 lines · 30 code · 13 blank · 0 comment · 0 complexity · fde3c22065785e4922061c775dcd9ae0 MD5 · raw file
- <%def name="change_list_results(cl, result_headers, results)" >
- % if results:
- <table cellspacing="0" id="results_list">
- <thead>
- <tr>
- % for header in result_headers:
- <th${header['class_attrib'] if 'class_attrib' in header else ''}>
- % if 'sortable' in header and header['sortable']:
- <a href="${header['url']}">
- % endif
- ${header['text']|capfirst}
- % if 'sortable' in header and header['sortable']:
- </a>
- % endif
- </th>
- % endfor
- </tr>
- </thead>
- <tbody>
- % for num,result in enumerate(results):
- <tr class="${'row2' if num%2 else 'row1'}">
- % for item in result:
- ${item}
- % endfor
- </tr>
- % endfor
- </tbody>
- </table>
- % endif
- </%def>