Custom sidebar

[ci skip]
This commit is contained in:
Mike Helmick 2013-06-08 16:02:41 -04:00
parent dd61841481
commit 4debef7d84
5 changed files with 22 additions and 30 deletions

View file

@ -81,12 +81,7 @@
{%- block sidebarrel %}
{%- include "relations.html" %}
{%- endblock %}
{%- block sidebarsourcelink %}
{%- include "sourcelink.html" %}
{%- endblock %}
{%- if customsidebar %}
{%- include customsidebar %}
{%- endif %}
{%- include "customsidebar.html" %}
{%- block sidebarsearch %}
{%- include "searchbox.html" %}
{%- endblock %}
@ -225,26 +220,7 @@
<a class="brand" href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
{% if not (theme_nosidebar|tobool) %}
{%- for rellink in rellinks %}
<li>
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
</li>
{%- endfor %}
{%- for parent in parents %}
<li>
<a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>
</li>
{%- endfor %}
{% else %}
{%- if prev %}
<li><a href="{{ prev.link|e }}"><i class="icon icon-double-angle-left"></i>&nbsp;{{ prev.title }}</a></li>
{%- endif %}
<li><a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a></li>
{%- if next %}
<li><a href="{{ next.link|e }}">{{ next.title }}&nbsp;<i class="icon icon-double-angle-right"></i></a></li>
{%- endif %}
{%- endif %}
</ul>
</div>
</div>