{#
    relations.html
    ~~~~~~~~~~~~~~~~~~~~
    Sphinx sidebar template: relation links,
    modified from sphinx's basic/relations.html
#}

{% if theme_sidebar_prev_next | tobool %}

   {%- if prev %}
     <div class="sphinxprev">
       <h4>{{ theme_sidebar_prev_title or _('Previous page') }}</h4>
       <p class="topless"><a href="{{ prev.link|e }}"
                             title="{{ theme_sidebar_prev_title or _('Previous page') }}">&larr; {{ prev.title }}</a></p>
     </div>
   {%- endif %}
   {%- if next %}
     <div class="sphinxnext">
       <h4>{{ theme_sidebar_next_title or _('Next page') }}</h4>
       <p class="topless"><a href="{{ next.link|e }}"
                             title="{{ theme_sidebar_next_title or _('Next page') }}">&rarr; {{ next.title }}</a></p>
     </div>
   {%- endif %}
{%- endif %}
