layout.html 5.9 KB

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