-
Notifications
You must be signed in to change notification settings - Fork 7
/
layout.html
135 lines (116 loc) · 4.45 KB
/
layout.html
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/bootstrap-css-tweaks.js'] %}
{% set css_files = ['_static/bootstrap-sphinx.css'] + css_files %}
{%- block extrahead %}
{% endblock %}
{% block header %}
{% if theme_show_okfn_logo %}
<div id="okf-panel" class="collapse"><iframe src="//assets.okfn.org/themes/okfn/okf-panel.html" scrolling="no"></iframe></div>
{% endif %}
<div class="navbar">
<div class="navbar-inner">
<div class="container">
{% if theme_logo_icon %}
<a class="logo-icon pull-left" href="{{ pathto(master_doc) }}"><img src="{{theme_logo_icon}}" 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 %}
<div class="okfn-ribbon"><a href="http://okfn.org/" data-toggle="collapse" data-target="#okf-panel" title="Part of the Open Knowledge Foundation Network">An Open Knowledge Foundation Site</a></div>
{% endif %}
<div class="pull-right navbar-search span3">
{% block sidebarsearch %}
{%- if pagename != "search" %}
{% include "searchbox.html" %}
{%- endif %}
{% endblock %}
</div>
</div>
</div>
</div>
{% endblock %}
{# Silence the sidebar and relbars. #}
{% block sidebar1 %}{% endblock %}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{%- block content %}
{# The breadcrumb navigation links. #}
<div class="sub-header">
<ul class="container breadcrumb">
{%- block rootrellink %}
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
{%- endblock %}
{%- for parent in parents %}
<li><a href="{{ parent.link|e }}"
{% if loop.last %}{{ accesskey("U") }}{% endif %}>
{{ parent.title }}
</a>{{ reldelim1 }}</li>
{%- endfor %}
<li><a href="">
{{ title | e}}
</a></li>
</ul>
</div>
<div class="container">
<div class="row">
<div class="span3">
{% block sidebar2 %}
{{ sidebar() }}
{% endblock %}
</div><!--/span-->
<div class="span7 offset1">
<div class="content">
{% block body %} {% endblock %}
{# The next and previous page links. #}
<div style="font-size:smaller;">
<hr/>
{% for rellink in rellinks %}
{% if rellink[2] in ('N', 'P') %}
<div {% if rellink[2] == 'N' %}class="pull-right"{% endif %}>
<a href="{{ pathto(rellink[0]) }}"
title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>
{% if rellink[2] == 'P' %}
{% set text = "← " + (rellink[1] | truncate(50)) %}
{% elif rellink[2] == 'N' %}
{% set text = (rellink[1] | truncate(50)) + "→" %}
{% endif %}
{{ text | striptags | e }}
</a>
</div>
{% endif %}
{% endfor %}
<div style="clear:both;"></div>
</div>
</div>
</div>
</div> <!-- / row -->
</div>
{%- endblock %}
{%- block footer %}
<footer>
<div class="inner">
<div class="container">
{% include "footer.html" %}
{% if theme_git_repo %}
<a href="{{ theme_git_repo }}" class="forkme" title="Fork on GitHub"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
{% endif %}
</div>
</div>
</footer>
{% if theme_show_okfn_logo %}
<script src="//assets.okfn.org/themes/okfn/collapse.min.js" type="text/javascript"></script>
<script src="//assets.okfn.org/themes/okfn/okf-panel.js" type="text/javascript"></script>
{% endif %}
{% 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 %}