PageRenderTime 11ms CodeModel.GetById 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 47 lines | 38 code | 9 blank | 0 comment | 0 complexity | 73b052bff6413243e0cb534240e2b153 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; Tags</div>{% endblock %}
  5. {% block title %}Template tags{% endblock %}
  6. {% block content %}
  7. <h1>Template tag documentation</h1>
  8. <div id="content-main">
  9. {% regroup tags|dictsort:"library" by library as tag_libraries %}
  10. {% for library in tag_libraries %}
  11. <div class="module">
  12. <h2>{% firstof library.grouper "Built-in tags" %}</h2>
  13. {% if library.grouper %}<p class="small quiet">To use these tags, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the tag.</p><hr />{% endif %}
  14. {% for tag in library.list|dictsort:"name" %}
  15. <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
  16. <h4>{{ tag.title|striptags }}</h4>
  17. {{ tag.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 tags|dictsort:"library" by library as tag_libraries %}
  27. {% for library in tag_libraries %}
  28. <div class="module">
  29. <h2>{% firstof library.grouper "Built-in tags" %}</h2>
  30. <ul>
  31. {% for tag in library.list|dictsort:"name" %}
  32. <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
  33. {% endfor %}
  34. </ul>
  35. </div>
  36. {% endfor %}
  37. </div>
  38. {% endblock %}