layout.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {%- macro navbar() %}
  2. <div class="navbar" style="text-align:right;">
  3. {#%- if parents|count > 0 %#}
  4. {#{ parents[1].title }#}
  5. {%- if prev %}
  6. <a class="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"><img src="{{ pathto('_static/prev.png', 1) }}" alt="prev"/></a>
  7. {%- endif %}
  8. {%- if parents %}
  9. <a class="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"><img src="{{ pathto('_static/up.png', 1) }}" alt="up"/></a>
  10. {%- endif %}
  11. {%- if next %}
  12. <a class="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"><img src="{{ pathto('_static/next.png', 1) }}" alt="next"/></a>
  13. {%- endif %}
  14. {#%- endif %#}
  15. </div>
  16. {%- endmacro %}
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  18. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22. {{ metatags }}
  23. {%- if builder != 'htmlhelp' %}
  24. {%- set titlesuffix = docstitle|e %}
  25. {%- set titlesuffix = " - " + titlesuffix %}
  26. {%- endif %}
  27. <title>{{ title|striptags }}{{ titlesuffix }}</title>
  28. {%- if builder == 'web' %}
  29. <link rel="stylesheet" href="{{ pathto('index') }}?do=stylesheet{%
  30. if in_admin_panel %}&admin=yes{% endif %}" type="text/css" />
  31. {%- for link, type, title in page_links %}
  32. <link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}" />
  33. {%- endfor %}
  34. {%- else %}
  35. <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
  36. <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" />
  37. {%- endif %}
  38. {%- if builder != 'htmlhelp' %}
  39. <script type="text/javascript">
  40. var DOCUMENTATION_OPTIONS = {
  41. URL_ROOT: '{{ pathto("", 1) }}',
  42. VERSION: '{{ release|e }}',
  43. COLLAPSE_MODINDEX: false,
  44. FILE_SUFFIX: '{{ file_suffix }}'
  45. };
  46. </script>
  47. {%- for scriptfile in script_files %}
  48. <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
  49. {%- endfor %}
  50. {%- if use_opensearch %}
  51. <link rel="search" type="application/opensearchdescription+xml"
  52. title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
  53. href="{{ pathto('_static/opensearch.xml', 1) }}"/>
  54. {%- endif %}
  55. {%- if favicon %}
  56. <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
  57. {%- endif %}
  58. {%- endif %}
  59. {%- block linktags %}
  60. {%- if hasdoc('about') %}
  61. <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
  62. {%- endif %}
  63. <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
  64. <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
  65. {%- if hasdoc('copyright') %}
  66. <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
  67. {%- endif %}
  68. <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
  69. {%- if parents %}
  70. <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
  71. {%- endif %}
  72. {%- if next %}
  73. <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
  74. {%- endif %}
  75. {%- if prev %}
  76. <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
  77. {%- endif %}
  78. {%- endblock %}
  79. {%- block extrahead %} {% endblock %}
  80. </head>
  81. <body>
  82. <div class="header">
  83. <table border="0" cellpadding="7" cellspacing="0" width="100%" summary=
  84. "header">
  85. <tr>
  86. <td valign="top" width="300">
  87. <h3><a href="{{ pathto('index') }}"><img
  88. alt="C++ Boost" src="{{ pathto('_static/' + logo, 1) }}" border="0"></a></h3>
  89. </td>
  90. <td >
  91. <h1 align="center"><a href="{{ pathto('index') }}"></a></h1>
  92. </td>
  93. <td>
  94. {%- if pagename != "search" %}
  95. <div id="searchbox" style="display: none">
  96. <form class="search" action="{{ pathto('search') }}" method="get">
  97. <input type="text" name="q" size="18" />
  98. <input type="submit" value="{{ _('Search') }}" />
  99. <input type="hidden" name="check_keywords" value="yes" />
  100. <input type="hidden" name="area" value="default" />
  101. </form>
  102. </div>
  103. <script type="text/javascript">$('#searchbox').show(0);</script>
  104. {%- endif %}
  105. </td>
  106. </tr>
  107. </table>
  108. </div>
  109. <hr/>
  110. <div class="content">
  111. {%- block top_navbar %}{{ navbar() }}{% endblock %}
  112. {% block body %} {% endblock %}
  113. {%- block bottom_navbar %}{{ navbar() }}{% endblock %}
  114. </div>
  115. {%- block footer %}
  116. <div class="footer" role="contentinfo">
  117. {%- if show_copyright %}
  118. {%- if hasdoc('copyright') %}
  119. {% trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
  120. {%- else %}
  121. {% trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.{% endtrans %}
  122. {%- endif %}
  123. {%- endif %}
  124. {%- if last_updated %}
  125. {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
  126. {%- endif %}
  127. {%- if show_sphinx %}
  128. {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
  129. {%- endif %}
  130. </div>
  131. {%- endblock %}
  132. </body>
  133. </html>