PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms 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
 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
 7{% block content %}
 8
 9<h1>Template filter documentation</h1>
10
11<div id="content-main">
12{% regroup filters|dictsort:"library" by library as filter_libraries %}
13{% for library in filter_libraries %}
14<div class="module">
15    <h2>{% firstof library.grouper "Built-in filters" %}</h2>
16    {% 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 %}
17    {% for filter in library.list|dictsort:"name" %}
18    <h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
19    {{ filter.title }}
20    {{ filter.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 filters|dictsort:"library" by library as filter_libraries %}
34{% for library in filter_libraries %}
35<div class="module">
36    <h2>{% firstof library.grouper "Built-in filters" %}</h2>
37    <ul>
38    {% for filter in library.list|dictsort:"name" %}
39        <li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
40    {% endfor %}
41    </ul>
42</div>
43{% endfor %}
44
45</div>
46
47{% endblock %}