author | Laurent Peuch <cortex@worlddomination.be> |
Thu, 21 Feb 2019 18:49:24 +0100 | |
branch | 3.26 |
changeset 12458 | e5610bdda5b2 |
parent 10491 | c67bcee93248 |
permissions | -rw-r--r-- |
10020
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
1 |
{% extends "basic/layout.html" %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
2 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
3 |
{%- block extrahead %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
4 |
<!--[if lte IE 6]> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
5 |
<link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" /> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
6 |
<![endif]--> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
7 |
{%- if theme_favicon %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
8 |
<link rel="shortcut icon" href="{{ pathto('_static/'+theme_favicon, 1) }}"/> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
9 |
{%- endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
10 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
11 |
{%- if theme_canonical_url %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
12 |
<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html"/> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
13 |
{%- endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
14 |
{% endblock %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
15 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
16 |
{% block header %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
17 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
18 |
{% if theme_in_progress|tobool %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
19 |
<img style="position: fixed; display: block; width: 165px; height: 165px; bottom: 60px; right: 0; border: 0;" src="{{ pathto('_static/in_progress.png', 1) }}" alt="Documentation in progress" /> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
20 |
{% endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
21 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
22 |
{% if theme_outdated|tobool %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
23 |
<div style="bottom: 60px; right: 20px;position: fixed;"><a href="{{ latest_url }}" class="btn btn-large btn-danger"><strong>></strong> Read the latest version of this page</a></div> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
24 |
{% endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
25 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
26 |
<div class="header-small"> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
27 |
{%- if theme_logo %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
28 |
{% set img, ext = theme_logo.split('.', -1) %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
29 |
<div class="logo-small"> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
30 |
<a href="{{ pathto(master_doc) }}"> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
31 |
<img class="logo" src="{{ pathto('_static/%s-small.%s' % (img, ext), 1)}}" alt="Logo"/> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
32 |
</a> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
33 |
</div> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
34 |
{%- endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
35 |
</div> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
36 |
{% endblock %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
37 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
38 |
{%- macro relbar() %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
39 |
<div class="related"> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
40 |
<h3>{{ _('Navigation') }}</h3> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
41 |
<ul> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
42 |
{%- for rellink in rellinks %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
43 |
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
44 |
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
45 |
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
46 |
{%- if not loop.first %}{{ reldelim2 }}{% endif %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
47 |
</li> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
48 |
{%- endfor %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
49 |
{%- block rootrellink %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
50 |
<li><a href="{{ pathto(master_doc) }}">{{ docstitle|e }}</a>{{ reldelim1 }}</li> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
51 |
{%- endblock %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
52 |
{%- for parent in parents %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
53 |
<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
54 |
{%- endfor %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
55 |
{%- block relbaritems %} {% endblock %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
56 |
</ul> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
57 |
</div> |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
58 |
{%- endmacro %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
59 |
|
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
60 |
{%- block sidebarlogo %}{%- endblock %} |
5e3fbdb035a8
[book] new theme based on pyramid theme (closes #4291287)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
61 |
{%- block sidebarsourcelink %}{%- endblock %} |