{# haiku/layout.html ~~~~~~~~~~~~~~~~~ Sphinx layout template for the haiku theme. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {% extends "basic/layout.html" %} {# do not display relbars #} {% block relbar1 %} {% endblock %} {% block relbar2 %} {% endblock %} {% macro script() %} {% endmacro %} {% macro scripts() %} {# For all pages other than the search page append the scripts to the body to make the page load faster #} {%- if pagename != "search" -%} {%- for scriptfile in script_files %} {%- endfor %} {%- endif %} {%- for scriptfile in odsa_scripts %} {%- endfor %} {% endmacro %} {% macro login() %} {{ login }}
Close

{% endmacro %} {% macro registration() %} {{ register }}
{{ close }}

{% endmacro %} {% macro nav() %} {%- block haikurel1 %} {%- endblock %} {%- if prev %} «  {{ prev.title }}   ::   {%- endif %} {{ _('Contents') }} {%- if next %}   ::   {{ next.title }}  » {%- endif %} {%- block haikurel2 %} {%- endblock %} {# | Knowledge Map#} {% endmacro %} {% macro btm_nav() %} {%- block haikurel3 %} {%- endblock %} {%- if prev %} «  {{ prev.title }}   ::   {%- endif %} {{ _('Contents') }} {%- if next %}   ::   {{ next.title }}  » {%- endif %} {%- block haikurel4 %} {%- endblock %} {# | Knowledge Map#} {% endmacro %} {% block content %}
{%- block haikuheader %} {{ scripts() }} {{ login() }} {{ registration() }} {%- if theme_full_logo != "false" %} {%- else %} {%- if logo -%} {%- endif -%}

{{ shorttitle|e }}

{%- if pagename=="index" -%}

{{ tofc }}

{%- else %}

{{ chapter_items[pagename] }}

{%- endif %}
{%- endif %} {%- endblock %}

{%- if sourcename %} {{ _('Show Source') }} |    {%- endif %} {%- if pagename=="ToDo" or pagename =="search" -%}    {%- else %} | {{ about }}   {%- endif %} {{ nav() }}

{{ linktags }}
{%- if pagename=="index" -%} {%- endif -%} {#{%- if display_toc %}

{{ tofc|safe }}

{{ toc }}
{%- endif %}#} {% block body %}{% endblock %}

   {{ btm_nav() }}

nsf {% endblock %}