layout.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. {%- endblock %}
  32. {%- block extrahead %} {% endblock %}
  33. {%- block header %}{% endblock %}
  34. {%- block relbar1 %}
  35. <div id="docstitle">
  36. <p>{{docstitle}}</p>
  37. </div>
  38. <div id="header">
  39. <div id="title"><h1>{{ title|striptags }}</h1></div>
  40. <ul id="headerButtons">
  41. <li id="toc_button"><div class="headerButton"><a href="#">Table of Contents</a></div></li>
  42. <li id="page_buttons">
  43. {%- for rellink in rellinks %}
  44. <div class="headerButton"><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></div>
  45. {%- endfor %}
  46. </li>
  47. </ul>
  48. </div>
  49. {% endblock %}
  50. {%- block sidebar1 %}
  51. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  52. <div id="sphinxsidebar">
  53. <div class="sphinxsidebarwrapper">
  54. {%- block sidebarlogo %}
  55. {%- if logo %}
  56. <p class="logo"><a href="{{ pathto(master_doc) }}">
  57. <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
  58. </a></p>
  59. {%- endif %}
  60. {%- endblock %}
  61. {%- block sidebartoc %}
  62. <ul><li class="toctree-l1"><a href="{{ pathto(master_doc) }}">{{ _('Main Page') }}</a></li></ul>
  63. {{ toctree() }}
  64. {%- endblock %}
  65. {%- block sidebarrel %}
  66. {%- endblock %}
  67. {%- block sidebarsourcelink %}
  68. {%- if show_source and has_source and sourcename %}
  69. <h3>{{ _('This Page') }}</h3>
  70. <ul class="this-page-menu">
  71. <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
  72. rel="nofollow">{{ _('Show Source') }}</a></li>
  73. </ul>
  74. {%- endif %}
  75. {%- endblock %}
  76. {%- if customsidebar %}
  77. {% include customsidebar %}
  78. {%- endif %}
  79. {%- block sidebarsearch %}
  80. {%- if pagename != "search" %}
  81. <div id="searchbox" style="display: none">
  82. {# <h3>{{ _('Quick search') }}</h3> #}
  83. <form class="search" action="{{ pathto('search') }}" method="get">
  84. <div class="search-wrapper">
  85. <span class="search-left"></span>
  86. <input class="prettysearch" type="text" name="q" size="18" />
  87. <span class="search-right">&nbsp;</span>
  88. </div>
  89. <input type="submit" value="{{ _('Search') }}" class="searchbutton" />
  90. <input type="hidden" name="check_keywords" value="yes" />
  91. <input type="hidden" name="area" value="default" />
  92. </form>
  93. <p class="searchtip" style="font-size: 90%">
  94. {{ _('Enter search terms or a module, class or function name.') }}
  95. </p>
  96. </div>
  97. <script type="text/javascript">$('#searchbox').show(0);</script>
  98. {%- endif %}
  99. {%- endblock %}
  100. </div>
  101. </div>
  102. {%- endif %}{% endif %}
  103. {% endblock %}
  104. {%- block document %}
  105. <div class="documentwrapper">
  106. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  107. <div class="bodywrapper">
  108. {%- endif %}{% endif %}
  109. <div class="body">
  110. {% block body %} {% endblock %}
  111. </div>
  112. {%- if not embedded %}{% if not theme_nosidebar|tobool %}
  113. </div>
  114. {%- endif %}{% endif %}
  115. </div>
  116. <div class="footer">
  117. <p>{%- if hasdoc('copyright') %}
  118. {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
  119. {%- else %}
  120. {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
  121. {%- endif %}
  122. {%- if last_updated %}
  123. {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
  124. {%- endif %}
  125. {%- if show_sphinx %}
  126. {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
  127. {%- endif %}
  128. </p>
  129. </div>
  130. {%- endblock %}
  131. {%- block sidebar2 %}{% endblock %}
  132. {%- block relbar2 %}{% endblock %}
  133. {%- block footer %}
  134. <div id="breadcrumbs">
  135. {%- for parent in parents %}
  136. <a href="{{ parent.link|e }}" {{ accesskey("U") }}>{{ parent.title }}</a><img src="triangle_closed.png" alt="Right arrow">
  137. {%- endfor %}
  138. <a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
  139. </ul>
  140. </div>
  141. {%- endblock %}