| 1 |
{% extends "basic/layout.html" %} |
| 2 |
|
| 3 |
{%- macro secondnav() %} |
| 4 |
{%- if prev %} |
| 5 |
« <a href="{{ prev.link|e }}" title="{{ prev.title|e }}">previous</a> |
| 6 |
{{ reldelim2 }} |
| 7 |
{%- endif %} |
| 8 |
{%- if parents %} |
| 9 |
<a href="{{ parents.0.link|e }}" title="{{ parents.0.title|e }}" accesskey="U">up</a> |
| 10 |
{%- else %} |
| 11 |
<a title="{{ docstitle }}" href="{{ pathto('index') }}" accesskey="U">up</a> |
| 12 |
{%- endif %} |
| 13 |
{%- if next %} |
| 14 |
{{ reldelim2 }} |
| 15 |
<a href="{{ next.link|e }}" title="{{ next.title|e }}">next</a> » |
| 16 |
{%- endif %} |
| 17 |
{%- endmacro %} |
| 18 |
|
| 19 |
{% block extrahead %} |
| 20 |
{{ super() }} |
| 21 |
{% endblock %} |
| 22 |
|
| 23 |
{% block document %} |
| 24 |
<div id="custom-doc" class="{% block bodyclass %}{{ 'yui-t6' if pagename != 'index' else '' }}{% endblock %}"> |
| 25 |
<div id="hd"> |
| 26 |
<h1><a href="{{ pathto('index') }}">{{ docstitle }}</a></h1> |
| 27 |
<div id="global-nav"> |
| 28 |
<a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }} |
| 29 |
<a title="Global index" href="{{ pathto('genindex') }}">Index</a> {{ reldelim2 }} |
| 30 |
<a title="Module index" href="{{ pathto('py-modindex') }}">Modules</a> |
| 31 |
</div> |
| 32 |
<div class="nav">{{ secondnav() }}</div> |
| 33 |
</div> |
| 34 |
|
| 35 |
<div id="bd"> |
| 36 |
<div id="yui-main"> |
| 37 |
<div class="yui-b"> |
| 38 |
<div class="yui-g" id="{{ pagename|replace('/', '-') }}"> |
| 39 |
{% block body %}{% endblock %} |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
{% block sidebarwrapper %} |
| 44 |
{% if pagename != 'index' %} |
| 45 |
<div class="yui-b" id="sidebar"> |
| 46 |
{{ sidebar() }} |
| 47 |
{%- if last_updated %} |
| 48 |
<h3>Last update:</h3> |
| 49 |
<p class="topless">{{ last_updated }}</p> |
| 50 |
{%- endif %} |
| 51 |
</div> |
| 52 |
{% endif %} |
| 53 |
{% endblock %} |
| 54 |
</div> |
| 55 |
|
| 56 |
<div id="ft"> |
| 57 |
<div class="nav">{{ secondnav() }}</div> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
{% endblock %} |
| 61 |
|
| 62 |
{% block sidebarrel %} |
| 63 |
<h3>Browse</h3> |
| 64 |
<ul> |
| 65 |
{% if prev %} |
| 66 |
<li>Prev: <a href="{{ prev.link }}">{{ prev.title }}</a></li> |
| 67 |
{% endif %} |
| 68 |
{% if next %} |
| 69 |
<li>Next: <a href="{{ next.link }}">{{ next.title }}</a></li> |
| 70 |
{% endif %} |
| 71 |
</ul> |
| 72 |
<h3>You are here:</h3> |
| 73 |
<ul> |
| 74 |
<li> |
| 75 |
<a href="{{ pathto('index') }}">{{ docstitle }}</a> |
| 76 |
{% for p in parents %} |
| 77 |
<ul><li><a href="{{ p.link }}">{{ p.title }}</a> |
| 78 |
{% endfor %} |
| 79 |
<ul><li>{{ title }}</li></ul> |
| 80 |
{% for p in parents %}</li></ul>{% endfor %} |
| 81 |
</li> |
| 82 |
</ul> |
| 83 |
{% endblock %} |
| 84 |
|
| 85 |
{# Empty some default blocks out #} |
| 86 |
{% block relbar1 %}{% endblock %} |
| 87 |
{% block relbar2 %}{% endblock %} |
| 88 |
{% block sidebar1 %}{% endblock %} |
| 89 |
{% block sidebar2 %}{% endblock %} |
| 90 |
{% block footer %}{% endblock %} |