1
{% extends "basic/layout.html" %}
3
{%- macro secondnav() %}
5
« <a href="{{ prev.link|e }}" title="{{ prev.title|e }}">previous</a>
9
<a href="{{ parents.0.link|e }}" title="{{ parents.0.title|e }}" accesskey="U">up</a>
11
<a title="{{ docstitle }}" href="{{ pathto('index') }}" accesskey="U">up</a>
15
<a href="{{ next.link|e }}" title="{{ next.title|e }}">next</a> »
21
<script type="text/javascript" src="{{ pathto('templatebuiltins.js', 1) }}"></script>
22
<script type="text/javascript">
24
if (!django_template_builtins) {
25
// templatebuiltins.js missing, do nothing.
28
$(document).ready(function() {
29
// Hyperlink Django template tags and filters
30
var base = "{{ pathto('ref/templates/builtins') }}";
32
// Special case for builtins.html itself
35
// Tags are keywords, class '.k'
36
$("div.highlight\\-html\\+django span.k").each(function(i, elem) {
37
var tagname = $(elem).text();
38
if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
39
var fragment = tagname.replace(/_/, '-');
40
$(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
43
// Filters are functions, class '.nf'
44
$("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
45
var filtername = $(elem).text();
46
if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
47
var fragment = filtername.replace(/_/, '-');
48
$(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
57
<div id="custom-doc" class="{% block bodyclass %}{{ 'yui-t6' if pagename != 'index' else '' }}{% endblock %}">
59
<h1><a href="{{ pathto('index') }}">{{ docstitle }}</a></h1>
61
<a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }}
62
<a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a> {{ reldelim2 }}
63
<a title="Global index" href="{{ pathto('genindex') }}">Index</a> {{ reldelim2 }}
64
<a title="Module index" href="{{ pathto('py-modindex') }}">Modules</a>
66
<div class="nav">{{ secondnav() }}</div>
72
<div class="yui-g" id="{{ pagename|replace('/', '-') }}">
73
{% block body %}{% endblock %}
77
{% block sidebarwrapper %}
78
{% if pagename != 'index' %}
79
<div class="yui-b" id="sidebar">
81
{%- if last_updated %}
83
<p class="topless">{{ last_updated }}</p>
91
<div class="nav">{{ secondnav() }}</div>
96
{% block sidebarrel %}
100
<li>Prev: <a href="{{ prev.link }}">{{ prev.title }}</a></li>
103
<li>Next: <a href="{{ next.link }}">{{ next.title }}</a></li>
106
<h3>You are here:</h3>
109
<a href="{{ pathto('index') }}">{{ docstitle }}</a>
110
{% for p in parents %}
111
<ul><li><a href="{{ p.link }}">{{ p.title }}</a>
113
<ul><li>{{ title }}</li></ul>
114
{% for p in parents %}</li></ul>{% endfor %}
119
{# Empty some default blocks out #}
120
{% block relbar1 %}{% endblock %}
121
{% block relbar2 %}{% endblock %}
122
{% block sidebar1 %}{% endblock %}
123
{% block sidebar2 %}{% endblock %}
124
{% block footer %}{% endblock %}
b'\\ No newline at end of file'