annotate manuals/theme/better/layout.html @ 1151:22b3daa4e464

Merged
author Sascha Wilde <wilde@intevation.de>
date Thu, 18 Sep 2014 13:29:32 +0200
parents 519b14c5260d
children
rev   line source
934
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
1 {%- extends "basic/layout.html" %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
2 {%- from "relbar.html" import relbar_top with context %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
3 {%- from "relbar.html" import relbar_bottom with context %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
4
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
5 {#- ### head ### -#}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
6
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
7 {%- block extrahead %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
8
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
9 {#- make mobile reasonable #}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
10 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
11
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
12 {%- for css_file in theme_cssfiles %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
13 {%- if css_file.startswith('http') %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
14 <link rel="stylesheet" href="{{ css_file }}" type="text/css" />
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
15 {%- else %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
16 <link rel="stylesheet" href="{{ pathto(css_file, 1) }}" type="text/css" />
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
17 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
18 {%- endfor %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
19
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
20 {%- for js_file in theme_scriptfiles %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
21 <script src="{{ pathto(js_file, 1) }}" type="text/javascript"></script>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
22 {%- endfor %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
23
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
24 {%- if theme_inlinecss %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
25 <style type="text/css">{{ theme_inlinecss|safe }}</style>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
26 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
27
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
28 {%- block userhead %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
29 {%- endblock %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
30 {%- endblock %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
31
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
32 {#- ### content ### -#}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
33
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
34 {%- block header %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
35 {%- if theme_showheader|tobool %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
36 <header id="pageheader"><h1><a href="{{ pathto(master_doc) }} ">
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
37 {{ docstitle }}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
38 </a></h1></header>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
39 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
40 {%- endblock %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
41
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
42 {%- block relbar1 -%}{{ relbar_top() }}{%- endblock -%}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
43 {%- block relbar2 -%}{{ relbar_bottom() }}{%- endblock -%}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
44
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
45 {%- block footer %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
46 <footer id="pagefooter">
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
47
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
48 {%- if show_copyright %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
49 {%- if hasdoc('copyright') %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
50 {% trans path=pathto('copyright'), copyright=copyright|e %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
51 <a href="{{ path }}">&copy; {{ copyright }} </a>.
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
52 {% endtrans %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
53 {%- else %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
54 {%- trans copyright=copyright|e -%}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
55 &copy; {{ copyright }}.
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
56 {%- endtrans %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
57 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
58 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
59
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
60 {%- if last_updated %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
61 {%- trans last_updated=last_updated|e -%}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
62 Last updated on {{ last_updated }}.
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
63 {%- endtrans %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
64 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
65
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
66 {%- if show_sphinx %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
67 Created using <a href="http://sphinx-doc.org/">Sphinx</a>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
68 {{ sphinx_version }}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
69 {%- if theme_linktotheme|tobool %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
70 with the <a href="http://github.com/irskep/sphinx-better-theme">
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
71 better</a> theme
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
72 {%- endif %}.
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
73 {%- else %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
74 {%- if theme_linktotheme %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
75 This site uses the
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
76 <a href="http://github.com/irskep/sphinx-better-theme">
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
77 &ldquo;better&rdquo;</a>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
78 theme for Sphinx.
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
79 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
80 {%- endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
81
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
82 </footer>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
83
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
84 {% if theme_ga_ua %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
85 <script>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
86 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
87 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
88 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
89 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
90
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
91 ga('create', '{{ theme_ga_ua }}', '{{ theme_ga_domain }}');
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
92 ga('send', 'pageview');
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
93 </script>
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
94 {% endif %}
519b14c5260d (issue89) Add sphinx better theme
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff changeset
95 {%- endblock %}

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