layout.html
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/bootstrap-css-tweaks.js'] %}
{% set css_files = ['_static/css/bootstrap.css', '_static/css/fix.css', '_static/css/bootstrap-responsive.css', '_static/bootstrap-sphinx.css'] + css_files %}
{%- block extrahead %}
{% endblock %}
{% block header %}
{% if theme_git_repo %}
<a href="{{ theme_git_repo }}"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 50000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
{% endif %}
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
{% if theme_logo_icon %}
<a class="logo-icon pull-left" href="{{ pathto(master_doc) }}"><img src="{{ pathto('_static/' + theme_logo_icon, 1) }}" alt="{{ project|e }}" /></a>
{% endif %}
<a class="brand" href="{{ pathto(master_doc) }}">{{ project|e }}{% if theme_show_version %}<span class="version"> v{{release}}</span>{% endif %}</a>
{% include "navbar-nav.html" ignore missing %}
{% if theme_show_okfn_logo %}
<a class="okfn-logo pull-right" href="http://okfn.org/" title="An Open Knowledge Foundation Project">
<img src="https://s3.amazonaws.com/assets.okfn.org/p/okfn/img/logo_28x30.png" alt="Open Knowledge Foundation logo" />
</a>
{% endif %}
{% block sidebarsearch %}
{% include "searchbox.html" %}
{% endblock %}
</div>
</div>
</div>
{% endblock %}
{# Silence the sidebar's, relbar's #}
{% block sidebar1 %}{% endblock %}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{%- block content %}
<div class="container-fluid">
<div class="row-fluid">
<div class="span4">
<div class="well sidebar-nav">
{% block sidebar2 %}
{{ sidebar() }}
{% endblock %}
</div><!--/.well -->
</div><!--/span-->
<div class="span8">
<div class="content">
{% block body %} {% endblock %}
</div>
</div>
</div> <!-- / row -->
</div>
{%- endblock %}
{%- block footer %}
<footer>
<div class="inner">
<div class="container-fluid">
{% include "footer.html" %}
</div>
</div>
</footer>
{% if theme_google_analytics_id %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ theme_google_analytics_id }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}
{%- endblock %}