/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
HTML | 47 lines | 38 code | 9 blank | 0 comment | 0 complexity | 73b052bff6413243e0cb534240e2b153 MD5 | raw file
Possible License(s): BSD-3-Clause
- {% extends "admin/base_site.html" %}
- {% load i18n %}
- {% block coltype %}colSM{% endblock %}
- {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> › <a href="../">Documentation</a> › Tags</div>{% endblock %}
- {% block title %}Template tags{% endblock %}
- {% block content %}
- <h1>Template tag documentation</h1>
- <div id="content-main">
- {% regroup tags|dictsort:"library" by library as tag_libraries %}
- {% for library in tag_libraries %}
- <div class="module">
- <h2>{% firstof library.grouper "Built-in tags" %}</h2>
- {% 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 %}
- {% for tag in library.list|dictsort:"name" %}
- <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
- <h4>{{ tag.title|striptags }}</h4>
- {{ tag.body }}
- {% if not forloop.last %}<hr />{% endif %}
- {% endfor %}
- </div>
- {% endfor %}
- </div>
- {% endblock %}
- {% block sidebar %}
- <div id="content-related">
- {% regroup tags|dictsort:"library" by library as tag_libraries %}
- {% for library in tag_libraries %}
- <div class="module">
- <h2>{% firstof library.grouper "Built-in tags" %}</h2>
- <ul>
- {% for tag in library.list|dictsort:"name" %}
- <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
- {% endfor %}
- </ul>
- </div>
- {% endfor %}
- </div>
- {% endblock %}