layout.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}
  2. {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
  3. {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
  4. (sidebars != []) %}
  5. {%- set url_root = pathto('', 1) %}
  6. {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
  7. {%- if not embedded and docstitle %}
  8. {%- set titlesuffix = " — "|safe + docstitle|e %}
  9. {%- else %}
  10. {%- set titlesuffix = "" %}
  11. {%- endif %}
  12. {%- macro script() %}
  13. <script type="text/javascript">
  14. var DOCUMENTATION_OPTIONS = {
  15. URL_ROOT: '{{ url_root }}',
  16. VERSION: '{{ release|e }}',
  17. COLLAPSE_INDEX: false,
  18. FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
  19. HAS_SOURCE: {{ has_source|lower }}
  20. };
  21. </script>
  22. {%- for scriptfile in script_files %}
  23. <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
  24. {%- endfor %}
  25. {%- endmacro %}
  26. {%- macro css() %}
  27. <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
  28. <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
  29. {%- for cssfile in css_files %}
  30. <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
  31. {%- endfor %}
  32. {%- endmacro %}
  33. {%- macro sidebar() %}
  34. <div class="sphinxsidebarwrapper">
  35. {%- if sidebars != None %}
  36. {#- new style sidebar: explicitly include/exclude templates #}
  37. {%- for sidebartemplate in sidebars %}
  38. {%- include sidebartemplate %}
  39. {%- endfor %}
  40. {%- else %}
  41. {#- old style sidebars: using blocks -- should be deprecated #}
  42. {%- block sidebartoc %}
  43. {%- include "localtoc.html" %}
  44. {%- endblock %}
  45. {%- block sidebarrel %}
  46. {%- include "relations.html" %}
  47. {%- endblock %}
  48. {%- if customsidebar %}
  49. {%- include customsidebar %}
  50. {%- endif %}
  51. {%- block sidebarsearch %}
  52. {%- include "searchbox.html" %}
  53. {%- endblock %}
  54. {%- endif %}
  55. </div>
  56. {%- endmacro %}
  57. <!doctype html>
  58. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  59. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  60. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  61. <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
  62. <!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
  63. <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
  64. <head>
  65. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  66. {{ metatags }}
  67. <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
  68. {{ css() }}
  69. <link rel="search" type="application/opensearchdescription+xml"
  70. title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
  71. href="{{ pathto('_static/opensearch.xml', 1) }}"/>
  72. <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
  73. <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  74. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  75. <script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
  76. {%- if hasdoc('about') %}
  77. <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
  78. {%- endif %}
  79. {%- if hasdoc('genindex') %}
  80. <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
  81. {%- endif %}
  82. {%- if hasdoc('search') %}
  83. <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
  84. {%- endif %}
  85. {%- if hasdoc('copyright') %}
  86. <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
  87. {%- endif %}
  88. <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
  89. {%- if parents %}
  90. <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" />
  91. {%- endif %}
  92. {%- if next %}
  93. <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
  94. {%- endif %}
  95. {%- if prev %}
  96. <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
  97. {%- endif %}
  98. <!-- Use the .htaccess and remove these lines to avoid edge case issues.
  99. More info: h5bp.com/i/378 -->
  100. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  101. <meta name="description" content="">
  102. <!-- Mobile viewport optimized: h5bp.com/viewport -->
  103. <meta name="viewport" content="width=device-width">
  104. <!-- Le styles -->
  105. <link href="{{ pathto('_static/less/bootstrap.less', 1) }}" rel="stylesheet/less">
  106. <style type="text/css">
  107. body {
  108. padding-top: 60px;
  109. padding-bottom: 40px;
  110. }
  111. </style>
  112. <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
  113. <!--[if lt IE 9]>
  114. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  115. <![endif]-->
  116. <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
  117. <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}">
  118. <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
  119. <!-- All JavaScript at the bottom, except this Modernizr build.
  120. Modernizr enables HTML5 elements & feature detects for optimal performance.
  121. Create your own custom Modernizr build: www.modernizr.com/download/ -->
  122. <script src="{{ pathto('_static/js/modernizr-2.5.3.min.js', 1) }}"></script>
  123. <script src="{{ pathto('_static/js/less-1.3.0.min.js', 1) }}" type="text/javascript"></script>
  124. <link rel="stylesheet" href="{{ pathto('_static/bootstrapCustom.css', 1) }}">
  125. <link rel="stylesheet" href="{{ pathto('_static/main.css', 1) }}">
  126. </head>
  127. <body>
  128. <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
  129. chromium.org/developers/how-tos/chrome-frame-getting-started -->
  130. <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
  131. <div class="navbar navbar-fixed-top">
  132. <div class="navbar-inner">
  133. <div class="container">
  134. <a class="brand" href="{{ pathto(master_doc) }}">{{ project }} documentation</a>
  135. <div class="nav-collapse" id="navigation" class="related">
  136. {{ toctree(collapse=True, maxdepth=1, titles_only=False) }}
  137. <ul class="nav">
  138. <li class="divider-vertical"></li>
  139. <li>
  140. <a target="_blank" href="_static/API/">API</a>
  141. </li>
  142. </ul>
  143. </div>
  144. <ul class="nav pull-right">
  145. <li class="divider-vertical"></li>
  146. <li class="dropdown">
  147. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  148. Phraseanet Libraries
  149. <b class="caret"></b>
  150. </a>
  151. <ul class="dropdown-menu">
  152. <li>
  153. <a href="http://phraseanet.github.com/" target="_blank">Phraseanet.github.com</a>
  154. </li>
  155. </ul>
  156. </li>
  157. </ul>
  158. </div>
  159. {% include "ribbon.html" %}
  160. </div>
  161. </div>
  162. <div role="main" class="container">
  163. <div class="row-fluid">
  164. <div class="span4">
  165. <div style="width:160px;margin:0 auto">
  166. <img style="width:100%;margin:20px 0;" src="{{ pathto('_static/img/project.png', 1) }}"/>
  167. </div>
  168. {{ sidebar() }}
  169. </div>
  170. <div class="span8">
  171. {%- if prev == None %}
  172. <div class="hero-unit">
  173. <h1>{{ project }} documentation</h1>
  174. <p>
  175. <!-- Your subtitle here-->
  176. </p>
  177. </div>
  178. {%- endif %}
  179. {{ body }}
  180. </div>
  181. </div>
  182. </div>
  183. {%- block footer %}
  184. <hr/>
  185. <footer class="container">
  186. {%- if show_copyright %}
  187. {%- if hasdoc('copyright') %}
  188. {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
  189. {%- else %}
  190. {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
  191. {%- endif %}
  192. {%- endif %}
  193. {%- if last_updated %}
  194. {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
  195. {%- endif %}
  196. {%- if show_sphinx %}
  197. {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
  198. {%- endif %}
  199. </footer>
  200. {%- endblock %}
  201. <!-- JavaScript at the bottom for fast page loading -->
  202. <!-- scripts concatenated and minified via build script -->
  203. <script src="{{ pathto('_static/js/plugins.js', 1) }}"></script>
  204. <script src="{{ pathto('_static/js/bootstrap.min.js', 1) }}"></script>
  205. <script src="{{ pathto('_static/js/script.js', 1) }}"></script>
  206. <!-- end scripts -->
  207. <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
  208. mathiasbynens.be/notes/async-analytics-snippet -->
  209. {{ script() }}
  210. {% include "analytics.html" %}
  211. </body>
  212. </html>