layout.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!--
  2. Documentation/_templates/layout.html
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership. The
  6. ASF licenses this file to you under the Apache License, Version 2.0 (the
  7. "License"); you may not use this file except in compliance with the
  8. License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. License for the specific language governing permissions and limitations
  14. under the License.
  15. -->
  16. {% extends "!layout.html" %}
  17. {% block sidebartitle %}
  18. {% if logo and theme_logo_only %}
  19. <a href="{{ pathto(master_doc) }}">
  20. {% else %}
  21. <a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}
  22. {% endif %}
  23. {% if logo %}
  24. {# Not strictly valid HTML, but it's the only way to display/scale
  25. it properly, without weird scripting or heaps of work
  26. #}
  27. <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
  28. {% endif %}
  29. </a>
  30. <!-- this version selector is quite ugly, should be probably replaced by something
  31. more modern -->
  32. <div class="version-selector">
  33. <select onchange="javascript:location.href = this.value;">
  34. {% for nuttx_version in nuttx_versions.split(',') %}
  35. <option value="{{ url_root }}../{{ nuttx_version }}" {% if nuttx_version == version %}selected="selected"{% endif %}>{{ nuttx_version }}</option>
  36. {% endfor %}
  37. </select>
  38. </div>
  39. {% include "searchbox.html" %}
  40. {% endblock %}