comparison manuals/theme/better/relbar.html @ 934:519b14c5260d

(issue89) Add sphinx better theme
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 17:16:53 +0200
parents
children
comparison
equal deleted inserted replaced
933:af27328bea9d 934:519b14c5260d
1 {%- macro rellink_markup() %}
2 <nav id="rellinks">
3 <ul>
4 {%- if prev %}
5 <li>
6 &larr;
7 <a href="{{ prev.link|e }}" title="Previous document">{{ prev.title }}</a>
8 </li>
9 {%- endif %}
10 {%- if next %}
11 <li>
12 <a href="{{ next.link|e }}" title="Next document">{{ next.title }}</a>
13 &rarr;
14 </li>
15 {%- endif %}
16 </ul>
17 </nav>
18 {%- endmacro %}
19
20 {%- macro breadcrumbs_markup() %}
21 <nav id="breadcrumbs">
22 <ul>
23 {%- block rootrellink %}
24 <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
25 {%- endblock %}
26 {%- for parent in parents %}
27 <li>
28 <a href="{{ parent.link|e }}">{{ parent.title }}</a>
29 </li>
30 {%- endfor %}
31 {%- block relbaritems %} {% endblock %}
32 </ul>
33 </nav>
34 {%- endmacro %}
35
36 {%- macro relbar_top() %}
37 {%- if theme_showrelbartop|tobool %}
38 <div class="related top">
39 {{- rellink_markup () }}
40 {{- breadcrumbs_markup() }}
41 </div>
42 {%- endif %}
43 {%- endmacro %}
44
45 {%- macro relbar_bottom() %}
46 {%- if theme_showrelbarbottom|tobool %}
47 <div class="related bottom">
48 {{- rellink_markup () }}
49 {{- breadcrumbs_markup() }}
50 </div>
51 {%- endif %}
52 {%- endmacro %}

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