view manuals/theme/better/relbar.html @ 1048:7bd1d723414d

(issue84) Ubuntu Installer: Add installation howto.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 05 Sep 2014 11:20:13 +0200
parents 519b14c5260d
children
line wrap: on
line source
{%- macro rellink_markup() %}
  <nav id="rellinks">
    <ul>
      {%- if prev %}
        <li>
          &larr;
          <a href="{{ prev.link|e }}" title="Previous document">{{ prev.title }}</a>
        </li>
      {%- endif %}
      {%- if next %}
        <li>
          <a href="{{ next.link|e }}" title="Next document">{{ next.title }}</a>
          &rarr;
        </li>
      {%- endif %}
    </ul>
  </nav>
{%- endmacro %}

{%- macro breadcrumbs_markup() %}
  <nav id="breadcrumbs">
    <ul>
      {%- block rootrellink %}
      <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
      {%- endblock %}
      {%- for parent in parents %}
      <li>
        <a href="{{ parent.link|e }}">{{ parent.title }}</a>
      </li>
      {%- endfor %}
      {%- block relbaritems %} {% endblock %}
    </ul>
  </nav>
{%- endmacro %}

{%- macro relbar_top() %}
  {%- if theme_showrelbartop|tobool %}
  <div class="related top">
    {{- rellink_markup () }}
    {{- breadcrumbs_markup() }}
  </div>
  {%- endif %}
{%- endmacro %}

{%- macro relbar_bottom() %}
  {%- if theme_showrelbarbottom|tobool %}
  <div class="related bottom">
    {{- rellink_markup () }}
    {{- breadcrumbs_markup() }}
  </div>
  {%- endif %}
{%- endmacro %}

http://wald.intevation.org/projects/trustbridge/