PageRenderTime 40ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): BSD-3-Clause
  1. <%def name="change_list_results(cl, result_headers, results)" >
  2. % if results:
  3. <table cellspacing="0" id="results_list">
  4. <thead>
  5. <tr>
  6. % for header in result_headers:
  7. <th${header['class_attrib'] if 'class_attrib' in header else ''}>
  8. % if 'sortable' in header and header['sortable']:
  9. <a href="${header['url']}">
  10. % endif
  11. ${header['text']|capfirst}
  12. % if 'sortable' in header and header['sortable']:
  13. </a>
  14. % endif
  15. </th>
  16. % endfor
  17. </tr>
  18. </thead>
  19. <tbody>
  20. % for num,result in enumerate(results):
  21. <tr class="${'row2' if num%2 else 'row1'}">
  22. % for item in result:
  23. ${item}
  24. % endfor
  25. </tr>
  26. % endfor
  27. </tbody>
  28. </table>
  29. % endif
  30. </%def>