/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
1{% extends "admin/base_site.html" %} 2{% load i18n %} 3{% block coltype %}colSM{% endblock %} 4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> › <a href="../">Documentation</a> › Tags</div>{% endblock %} 5{% block title %}Template tags{% endblock %} 6 7{% block content %} 8 9<h1>Template tag documentation</h1> 10 11<div id="content-main"> 12{% regroup tags|dictsort:"library" by library as tag_libraries %} 13{% for library in tag_libraries %} 14<div class="module"> 15 <h2>{% firstof library.grouper "Built-in tags" %}</h2> 16 {% 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 %} 17 {% for tag in library.list|dictsort:"name" %} 18 <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3> 19 <h4>{{ tag.title|striptags }}</h4> 20 {{ tag.body }} 21 {% if not forloop.last %}<hr />{% endif %} 22 {% endfor %} 23</div> 24{% endfor %} 25</div> 26 27{% endblock %} 28 29{% block sidebar %} 30 31<div id="content-related"> 32 33{% regroup tags|dictsort:"library" by library as tag_libraries %} 34{% for library in tag_libraries %} 35<div class="module"> 36 <h2>{% firstof library.grouper "Built-in tags" %}</h2> 37 <ul> 38 {% for tag in library.list|dictsort:"name" %} 39 <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li> 40 {% endfor %} 41 </ul> 42</div> 43{% endfor %} 44 45</div> 46 47{% endblock %}