layout.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. {% extends "basic/layout.html" %}
  2. {%- block doctype -%}
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. {%- endblock %}
  6. {%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
  7. {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
  8. {%- block linktags %}
  9. {%- if hasdoc('about') %}
  10. <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
  11. {%- endif %}
  12. {%- if hasdoc('genindex') %}
  13. <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
  14. {%- endif %}
  15. {%- if hasdoc('search') %}
  16. <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
  17. {%- endif %}
  18. {%- if hasdoc('copyright') %}
  19. <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
  20. {%- endif %}
  21. <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
  22. {%- if parents %}
  23. <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
  24. {%- endif %}
  25. {%- if next %}
  26. <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
  27. {%- endif %}
  28. {%- if prev %}
  29. <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
  30. {%- endif %}
  31. <link media="only screen and (max-device-width: 480px)" href="{{ pathto('_static/mobile.css', 1) }}" type="text/css" rel="stylesheet" />
  32. {%- endblock %}
  33. {%- block extrahead %} {% endblock %}
  34. {%- block header %}{% endblock %}
  35. {%- block relbar1 %}
  36. <div id="docstitle">
  37. <p>{{docstitle}}</p>
  38. </div>
  39. <div id="header">
  40. <div id="title"><h1>{{ title|striptags }}</h1></div>
  41. <ul id="headerButtons">
  42. <li id="toc_button"><div class="headerButton"><a href="#">Table of Contents</a></div></li>
  43. <li id="page_buttons">
  44. {%- for rellink in rellinks %}
  45. <div class="headerButton"><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></div>
  46. {%- endfor %}
  47. </li>
  48. </ul>
  49. </div>
  50. {% endblock %}
  51. {%- block sidebar1 %}
  52. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  53. <div id="sphinxsidebar">
  54. <div class="sphinxsidebarwrapper">
  55. {%- block sidebarlogo %}
  56. {%- if logo %}
  57. <p class="logo"><a href="{{ pathto(master_doc) }}">
  58. <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
  59. </a></p>
  60. {%- endif %}
  61. {%- endblock %}
  62. {%- block sidebartoc %}
  63. <ul><li class="toctree-l1"><a href="{{ pathto(master_doc) }}">{{ _('Main Page') }}</a></li></ul>
  64. {{ toctree() }}
  65. {%- endblock %}
  66. {%- block sidebarrel %}
  67. {%- endblock %}
  68. {%- block sidebarsourcelink %}
  69. {%- if show_source and has_source and sourcename %}
  70. <h3>{{ _('This Page') }}</h3>
  71. <ul class="this-page-menu">
  72. <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
  73. rel="nofollow">{{ _('Show Source') }}</a></li>
  74. </ul>
  75. {%- endif %}
  76. {%- endblock %}
  77. {%- if customsidebar %}
  78. {% include customsidebar %}
  79. {%- endif %}
  80. {%- block sidebarsearch %}
  81. {%- if pagename != "search" %}
  82. <div id="searchbox" style="display: none">
  83. {# <h3>{{ _('Quick search') }}</h3> #}
  84. <form class="search" action="{{ pathto('search') }}" method="get">
  85. <div class="search-wrapper">
  86. <span class="search-left"></span>
  87. <input class="prettysearch" type="text" name="q" size="18" />
  88. <span class="search-right">&nbsp;</span>
  89. </div>
  90. <input type="submit" value="{{ _('Search') }}" class="searchbutton" />
  91. <input type="hidden" name="check_keywords" value="yes" />
  92. <input type="hidden" name="area" value="default" />
  93. </form>
  94. <p class="searchtip" style="font-size: 90%">
  95. {{ _('Enter search terms or a module, class or function name.') }}
  96. </p>
  97. </div>
  98. <script type="text/javascript">$('#searchbox').show(0);</script>
  99. {%- endif %}
  100. {%- endblock %}
  101. </div>
  102. </div>
  103. {%- endif %}{% endif %}
  104. {% endblock %}
  105. {%- block document %}
  106. <div class="documentwrapper">
  107. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  108. <div class="bodywrapper">
  109. {%- endif %}{% endif %}
  110. <div class="body">
  111. {% block body %} {% endblock %}
  112. </div>
  113. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  114. </div>
  115. {%- endif %}{% endif %}
  116. </div>
  117. <div class="footer">
  118. <p>{%- if hasdoc('copyright') %}
  119. {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
  120. {%- else %}
  121. {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
  122. {%- endif %}
  123. {%- if last_updated %}
  124. {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
  125. {%- endif %}
  126. {%- if show_sphinx %}
  127. {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
  128. {%- endif %}
  129. </p>
  130. </div>
  131. {%- endblock %}
  132. {%- block sidebar2 %}{% endblock %}
  133. {%- block relbar2 %}{% endblock %}
  134. {%- block footer %}
  135. <div id="breadcrumbs">
  136. {%- for parent in parents %}
  137. <a href="{{ parent.link|e }}" {{ accesskey("U") }}>{{ parent.title|safe }}</a><img src="{{ pathto('_static/triangle_closed.png', 1) }}" height="9" width="9" alt="&gt;">
  138. {%- endfor %}
  139. {{ title|safe|e }}
  140. </ul>
  141. </div>
  142. <script type="text/javascript" charset="utf-8" src="{{ pathto('_static/toc.js', 1) }}"></script>
  143. {%- endblock %}