1
0

layout.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. {%- block doctype -%}
  2. <!DOCTYPE html>
  3. {%- endblock %}
  4. {% set xxx = rellinks.extend([
  5. ('glossary', 'Glossary', 'g', 'Glossary'),
  6. ('contents', 'Table of Contents', 't', 'Table of Contents'),
  7. ]) %}
  8. {%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
  9. {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
  10. {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and (sidebars != []) %}
  11. {%- set url_root = pathto('', 1) %}
  12. {# XXX necessary? #}
  13. {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
  14. {%- if not embedded and docstitle %}
  15. {%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
  16. {%- else %}
  17. {%- set titlesuffix = "" %}
  18. {%- endif %}
  19. {# Remove old version of jQuery #}
  20. {% set js_blacklist = [
  21. '_static/jquery.js',
  22. ] %}
  23. {# Add to top of the list #}
  24. {% set script_files = [
  25. '_static/js/vendor/jquery-1.9.1.js',
  26. '_static/js/vendor/bootstrap.min.js',
  27. ] + script_files %}
  28. {%- macro relbar() %}
  29. <div class="related">
  30. {#
  31. <ul class="nav rel-main">
  32. {%- block rootrellink %}
  33. <li><a href="{{ pathto('index') }}">Documentation</a> &raquo;</li>
  34. {%- endblock %}
  35. </ul>
  36. #}
  37. <ul class="nav rel-extra">
  38. {%- for rellink in rellinks|reverse %}
  39. <li>
  40. <a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}">{{ rellink[3] }}</a>
  41. {#
  42. {%- if not loop.last %}{{ reldelim2 }}{% endif %}
  43. #}
  44. </li>
  45. {%- endfor %}
  46. {%- block relbaritems %} {% endblock %}
  47. </ul>
  48. </div>
  49. {%- endmacro %}
  50. {%- macro sidebar() %}
  51. {%- if render_sidebar %}
  52. <div class="span3">
  53. <div>
  54. {%- block sidebarlogo %}{%- endblock %}
  55. {%- for sidebartemplate in sidebars|default(html_default_sidebars, true) %}
  56. {%- include sidebartemplate %}
  57. {%- endfor %}
  58. </div>
  59. </div>
  60. {%- endif %}
  61. {%- endmacro %}
  62. {%- macro script() %}
  63. <script>
  64. var DOCUMENTATION_OPTIONS = {
  65. URL_ROOT: '{{ url_root }}',
  66. VERSION: '{{ release|e }}',
  67. COLLAPSE_INDEX: false,
  68. FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
  69. HAS_SOURCE: {{ has_source|lower }}
  70. };
  71. </script>
  72. {%- for scriptfile in script_files %}
  73. {% if scriptfile not in js_blacklist %}
  74. <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
  75. {% endif %}
  76. {%- endfor %}
  77. {%- endmacro %}
  78. {%- macro css() %}
  79. {% if style %}
  80. <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}">
  81. {% endif %}
  82. <link rel="stylesheet" href="{{ pathto('_static/basic.css', 1) }}">
  83. <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}">
  84. <link rel="stylesheet" href="{{ pathto('_static/css/bootstrap.css', 1) }}">
  85. <style>
  86. body { padding-top: 20px; }
  87. </style>
  88. <link rel="stylesheet" href="{{ pathto('_static/css/bootstrap-responsive.css', 1) }}">
  89. <link rel="stylesheet" href="{{ pathto('_static/css/main.css', 1) }}">
  90. {%- endmacro %}
  91. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  92. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  93. <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
  94. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  95. <head>
  96. <meta charset="{{ encoding }}">
  97. {{ metatags }}
  98. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  99. {%- block htmltitle %}
  100. <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
  101. {%- endblock %}
  102. <meta name="description" content="">
  103. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  104. <meta name="google-site-verification" content="1Y-ojT3ndjxA9coB77iUDyXPWxeuQ3T4_r0j-QG6QHg" />
  105. <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,800,300' rel='stylesheet' type='text/css'>
  106. {{ css() }}
  107. {%- if not embedded %}
  108. {{ script() }}
  109. {%- if use_opensearch %}
  110. <link rel="search" type="application/opensearchdescription+xml"
  111. title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
  112. href="{{ pathto('_static/opensearch.xml', 1) }}">
  113. {%- endif %}
  114. {%- if favicon %}
  115. <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}">
  116. {%- endif %}
  117. {%- endif %}
  118. {%- block linktags %}
  119. {%- if hasdoc('about') %}
  120. <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}">
  121. {%- endif %}
  122. {%- if hasdoc('genindex') %}
  123. <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}">
  124. {%- endif %}
  125. {%- if hasdoc('search') %}
  126. <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}">
  127. {%- endif %}
  128. {%- if hasdoc('copyright') %}
  129. <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}">
  130. {%- endif %}
  131. <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}">
  132. {%- if parents %}
  133. <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}">
  134. {%- endif %}
  135. {%- if next %}
  136. <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}">
  137. {%- endif %}
  138. {%- if prev %}
  139. <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}">
  140. {%- endif %}
  141. {%- endblock %}
  142. {%- block extrahead %} {% endblock %}
  143. <script type="text/javascript" src="{{ pathto('_static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js', 1) }}"></script>
  144. {%- block analytics %}
  145. {% endblock %}
  146. </head>
  147. <body class="index">
  148. <!--[if lt IE 7]>
  149. <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
  150. <![endif]-->
  151. <!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
  152. {% block header %}
  153. <div class="navbar navbar-inverse navbar-fixed-top">
  154. <div class="navbar-inner">
  155. <div class="container">
  156. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  157. <span class="icon-bar"></span>
  158. <span class="icon-bar"></span>
  159. <span class="icon-bar"></span>
  160. </a>
  161. <a class="brand" href="{{ pathto('index') }}"><img src="{{ pathto('_static/images/SaltStack-Logo.png', 1) }}" /></a>
  162. <div class="nav-collapse collapse">
  163. {%- block relbar1 %}{{ relbar() }}{% endblock %}
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. {% endblock %}
  169. {%- block content %}
  170. {%- block sidebar1 %}{% endblock %}
  171. <div class="content row-fluid">
  172. <div class="container">
  173. <div class="span12">
  174. <div class="{{ 'span9' if render_sidebar else 'span12' }}">
  175. {%- block document %}
  176. {% block body %} {% endblock %}
  177. {%- endblock %}
  178. </div>
  179. {%- block sidebar2 %}{{ sidebar() }}{% endblock %}
  180. </div>
  181. </div>
  182. </div>
  183. {%- endblock %}
  184. {%- block relbar2 %}
  185. <div class="navbar navbar-inverse navbar-fixed-top">
  186. <div class="container">{{ relbar() }}</div>
  187. </div>
  188. {% endblock %}
  189. {%- block footer %}
  190. <footer>
  191. <div class="container">
  192. <div class="row-fluid">
  193. <div class="footerCol">
  194. <h4>About Us</h4>
  195. <a href="http://saltstack.com/">SaltStack</a>
  196. <a href="http://saltstack.com/about/">Leadership</a>
  197. </div>
  198. <div class="footerCol">
  199. <h4>Products</h4>
  200. <a href="http://saltstack.com/enterprise/">Enterprise</a>
  201. <a href="http://saltstack.com/services/">Integration</a>
  202. </div>
  203. <div class="footerCol">
  204. <h4>Services</h4>
  205. <a href="http://saltstack.com/training/">Onsite Training</a>
  206. <a href="http://saltstack.com/services/">Custom Professional Services</a>
  207. </div>
  208. <div class="footerCol">
  209. <h4>Contact Us</h4>
  210. <a href="http://saltstack.com/contact/">Support</a>
  211. <a href="http://saltstack.com/contact/">Contact us</a>
  212. </div>
  213. <div class="footerCol">
  214. <h4>Community</h4>
  215. <a href="http://saltstack.org">saltstack.org</a>
  216. <a href="http://docs.saltstack.org/en/latest/">Documentation</a>
  217. <!-- <a href="#">Blogs</a> -->
  218. </div>
  219. </div>
  220. <div class="row-fluid social">
  221. <!-- <a href="http://www.facebook.com/SaltStack"><img src="images/socialFB.png" alt="SaltStack on Facebook" /></a> -->
  222. <a href="http://twitter.com/SaltStackInc"><img src="{{ pathto('_static/images/socialTW.png', 1) }}" alt="SaltStack on Twitter" /></a>
  223. <a href="http://www.linkedin.com/company/salt-stack-inc"><img src="{{ pathto('_static/images/socialLI.png', 1) }}" alt="SaltStack on LinkedIn" /></a>
  224. <!-- <a href="http://plus.google.com/114449193225626631691"><img src="images/socialG+.png" alt="SaltStack on Google+" /></a> -->
  225. <a href="https://github.com/saltstack"><img src="{{ pathto('_static/images/socialGitHub.png', 1) }}" alt="SaltStack on GitHub" />
  226. </div>
  227. </div>
  228. </footer>
  229. {%- endblock %}
  230. <script type="text/javascript" src="{{ pathto('_static/js/main.js', 1) }}"></script>
  231. {% if on_saltstack %}
  232. <script type="text/javascript" language="javascript">llactid=23943</script>
  233. <script type="text/javascript" language="javascript" src="http://t6.trackalyzer.com/trackalyze.js"></script>
  234. {% endif %}
  235. </body>
  236. </html>