PageRenderTime 31ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admindocs/templates/admin_doc/template_filter_index.html

https://code.google.com/p/mango-py/
HTML | 47 lines | 38 code | 9 blank | 0 comment | 0 complexity | 0f6580686118eedb784d6ea4c68d77b7 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n %}
  3. {% block coltype %}colSM{% endblock %}
  4. {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; filters</div>{% endblock %}
  5. {% block title %}Template filters{% endblock %}
  6. {% block content %}
  7. <h1>Template filter documentation</h1>
  8. <div id="content-main">
  9. {% regroup filters|dictsort:"library" by library as filter_libraries %}
  10. {% for library in filter_libraries %}
  11. <div class="module">
  12. <h2>{% firstof library.grouper "Built-in filters" %}</h2>
  13. {% if library.grouper %}<p class="small quiet">To use these filters, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the filter.</p><hr />{% endif %}
  14. {% for filter in library.list|dictsort:"name" %}
  15. <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
  16. {{ filter.title }}
  17. {{ filter.body }}
  18. {% if not forloop.last %}<hr />{% endif %}
  19. {% endfor %}
  20. </div>
  21. {% endfor %}
  22. </div>
  23. {% endblock %}
  24. {% block sidebar %}
  25. <div id="content-related">
  26. {% regroup filters|dictsort:"library" by library as filter_libraries %}
  27. {% for library in filter_libraries %}
  28. <div class="module">
  29. <h2>{% firstof library.grouper "Built-in filters" %}</h2>
  30. <ul>
  31. {% for filter in library.list|dictsort:"name" %}
  32. <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
  33. {% endfor %}
  34. </ul>
  35. </div>
  36. {% endfor %}
  37. </div>
  38. {% endblock %}