|
| 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 | +{# When building htmlhelp (CHM format) disable jQuery inclusion, #} |
| 21 | +{# as it causes problems in compiled CHM files. #} |
| 22 | +{% if builder != "htmlhelp" %} |
| 23 | +{{ super() }} |
| 24 | +<script type="text/javascript" src="{{ pathto('templatebuiltins.js', 1) }}"></script> |
| 25 | +<link rel="stylesheet" type="text/css" href="_static/handsontable.full.min.css"> |
| 26 | +<script src="_static/handsontable.full.min.js"></script> |
| 27 | +<style> |
| 28 | +body{font-family:Helvetica,sans-serif;margin:2 0 0 0}.tab{margin-bottom:0px !important;text-align:center;list-style:none;padding:0 0 0 10px;line-height:24px;height:26px;overflow:hidden;font-size:12px;font-family:verdana;position:relative;margin:0}.tab li{margin-left:0px !important;margin-top:2px !important;float:left;height:24px;border:1px solid #aaa;background:#d1d1d1;background:linear-gradient(top, #ececec 50%, #d1d1d1);display:inline-block;position:relative;z-index:0;border-top-left-radius:6px;border-top-right-radius:6px;box-shadow:0 3px 3px rgba(0,0,0,0.4),inset 0 1px 0 #fff;text-shadow:0 1px #fff;margin:0 -5px;padding:0 20px}.tab li.active{background:#fff;color:#333;z-index:2}.tab li:before{left:-6px;border-width:0 1px 1px 0;box-shadow:2px 2px 0 #d1d1d1}.tab li:after{right:-6px;border-width:0 0 1px 1px;box-shadow:-2px 2px 0 #d1d1d1}.tab a{color:#555;text-decoration:none !important}.tab:before{position:absolute;content:" ";width:100%;bottom:0;left:0;border-bottom:1px solid #aaa;z-index:1}.tabcontent{margin-top:-1px} |
| 29 | +</style> |
| 30 | +<script type="text/javascript"> |
| 31 | +(function($) { |
| 32 | + if (!django_template_builtins) { |
| 33 | + // templatebuiltins.js missing, do nothing. |
| 34 | + return; |
| 35 | + } |
| 36 | + $(document).ready(function() { |
| 37 | + // Hyperlink Django template tags and filters |
| 38 | + var base = "{{ pathto('ref/templates/builtins') }}"; |
| 39 | + if (base == "#") { |
| 40 | + // Special case for builtins.html itself |
| 41 | + base = ""; |
| 42 | + } |
| 43 | + // Tags are keywords, class '.k' |
| 44 | + $("div.highlight\\-html\\+django span.k").each(function(i, elem) { |
| 45 | + var tagname = $(elem).text(); |
| 46 | + if ($.inArray(tagname, django_template_builtins.ttags) != -1) { |
| 47 | + var fragment = tagname.replace(/_/, '-'); |
| 48 | + $(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>"); |
| 49 | + } |
| 50 | + }); |
| 51 | + // Filters are functions, class '.nf' |
| 52 | + $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { |
| 53 | + var filtername = $(elem).text(); |
| 54 | + if ($.inArray(filtername, django_template_builtins.tfilters) != -1) { |
| 55 | + var fragment = filtername.replace(/_/, '-'); |
| 56 | + $(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>"); |
| 57 | + } |
| 58 | + }); |
| 59 | + }); |
| 60 | +})(jQuery); |
| 61 | +</script> |
| 62 | +{% endif %} |
| 63 | +{% endblock %} |
| 64 | + |
| 65 | +{% block document %} |
| 66 | + <div id="custom-doc" class="{% block bodyclass %}{{ 'yui-t6' if pagename != 'index' else '' }}{% endblock %}"> |
| 67 | + <div id="hd"> |
| 68 | + <h1><a href="{{ pathto('index') }}">{{ docstitle }}</a></h1> |
| 69 | + <div id="global-nav"> |
| 70 | + <a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }} |
| 71 | + <a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a> {{ reldelim2 }} |
| 72 | + <a title="Global index" href="{{ pathto('genindex') }}">Index</a> {{ reldelim2 }} |
| 73 | + <a title="Module index" href="{{ pathto('py-modindex') }}">Modules</a> |
| 74 | + </div> |
| 75 | + <div class="nav">{{ secondnav() }}</div> |
| 76 | + </div> |
| 77 | + |
| 78 | + <div id="bd"> |
| 79 | + <div id="yui-main"> |
| 80 | + <div class="yui-b"> |
| 81 | + <div class="yui-g" id="{{ pagename|replace('/', '-') }}"> |
| 82 | + {% block body %}{% endblock %} |
| 83 | + </div> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + {% block sidebarwrapper %} |
| 87 | + {% if pagename != 'index' %} |
| 88 | + <div class="yui-b" id="sidebar"> |
| 89 | + {{ sidebar() }} |
| 90 | + {%- if last_updated %} |
| 91 | + <h3>Last update:</h3> |
| 92 | + <p class="topless">{{ last_updated }}</p> |
| 93 | + {%- endif %} |
| 94 | + </div> |
| 95 | + {% endif %} |
| 96 | + {% endblock %} |
| 97 | + </div> |
| 98 | + |
| 99 | + <div id="ft"> |
| 100 | + <div class="nav">{{ secondnav() }}</div> |
| 101 | + </div> |
| 102 | + </div> |
| 103 | +{% endblock %} |
| 104 | + |
| 105 | +{% block sidebarrel %} |
| 106 | + <h3>Browse</h3> |
| 107 | + <ul> |
| 108 | + {% if prev %} |
| 109 | + <li>Prev: <a href="{{ prev.link }}">{{ prev.title }}</a></li> |
| 110 | + {% endif %} |
| 111 | + {% if next %} |
| 112 | + <li>Next: <a href="{{ next.link }}">{{ next.title }}</a></li> |
| 113 | + {% endif %} |
| 114 | + </ul> |
| 115 | + <h3>You are here:</h3> |
| 116 | + <ul> |
| 117 | + <li> |
| 118 | + <a href="{{ pathto('index') }}">{{ docstitle }}</a> |
| 119 | + {% for p in parents %} |
| 120 | + <ul><li><a href="{{ p.link }}">{{ p.title }}</a> |
| 121 | + {% endfor %} |
| 122 | + <ul><li>{{ title }}</li></ul> |
| 123 | + {% for p in parents %}</li></ul>{% endfor %} |
| 124 | + </li> |
| 125 | + </ul> |
| 126 | +{% endblock %} |
| 127 | + |
| 128 | +{# Empty some default blocks out #} |
| 129 | +{% block relbar1 %}{% endblock %} |
| 130 | +{% block relbar2 %}{% endblock %} |
| 131 | +{% block sidebar1 %}{% endblock %} |
| 132 | +{% block sidebar2 %}{% endblock %} |
| 133 | +{% block footer %}{% endblock %} |
0 commit comments