equal
deleted
inserted
replaced
|
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> › 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="{{ filter.name }}">{{ filter.name }}</h3> |
|
19 <p>{{ filter.title }}</p> |
|
20 <p>{{ filter.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 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="#{{ filter.name }}">{{ filter.name }}</a></li> |
|
40 {% endfor %} |
|
41 </ul> |
|
42 </div> |
|
43 {% endfor %} |
|
44 |
|
45 </div> |
|
46 |
|
47 {% endblock %} |