app/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     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 
       
     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="{{ tag.name }}">{{ tag.name }}</h3>
       
    19     <h4>{{ tag.title }}</h4>
       
    20     <p>{{ tag.body }}</p>
       
    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="#{{ tag.name }}">{{ tag.name }}</a></li>
       
    40     {% endfor %}
       
    41     </ul>
       
    42 </div>
       
    43 {% endfor %}
       
    44 
       
    45 </div>
       
    46 
       
    47 {% endblock %}