2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

Add navigation bar.

This commit is contained in:
Stefan Seefeld
2011-10-30 22:25:34 +00:00
parent 7a84a00673
commit 0cb3bd7aa5
5 changed files with 7 additions and 7 deletions

BIN
libs/numpy/doc/_static/home.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

BIN
libs/numpy/doc/_static/next.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

BIN
libs/numpy/doc/_static/prev.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

BIN
libs/numpy/doc/_static/up.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

View File

@@ -1,17 +1,17 @@
{%- macro navbar() %}
<div class="navbar">
{%- if parents|count > 2 %}
{{ parents[1].title }}
<div class="navbar" style="text-align:right;">
{#%- if parents|count > 0 %#}
{#{ parents[1].title }#}
{%- if prev %}
<a class="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}">prev</a>
<a class="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"><img src="{{ pathto('_static/prev.png', 1) }}" alt="prev"/></a>
{%- endif %}
{%- if parents %}
<a class="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}">up</a>
<a class="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"><img src="{{ pathto('_static/up.png', 1) }}" alt="up"/></a>
{%- endif %}
{%- if next %}
<a class="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}">next</a>
{%- endif %}
<a class="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"><img src="{{ pathto('_static/next.png', 1) }}" alt="next"/></a>
{%- endif %}
{#%- endif %#}
</div>
{%- endmacro %}