~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/contrib/admindocs/templates/admin_doc/template_tag_index.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Eddy Mulyono
  • Date: 2008-09-16 12:18:47 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080916121847-mg225rg5mnsdqzr0
Tags: 1.0-1ubuntu1
* Merge from Debian (LP: #264191), remaining changes:
  - Run test suite on build.

[Eddy Mulyono]
* Update patch to workaround network test case failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif %}</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>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif %}</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 %}