File: layout.html

package info (click to toggle)
pygresql 1%3A5.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,432 kB
  • sloc: python: 13,318; ansic: 4,984; makefile: 164
file content (58 lines) | stat: -rw-r--r-- 1,592 bytes parent folder | download | duplicates (4)
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
{%- extends "cloud/layout.html" %}

{% set css_files = css_files + ["_static/pygresql.css"] %}

{#
    This layout adds a page header above the standard layout.
    It also removes the relbars from all pages that are not part
    of the core documentation in the contents/ directory,
    adapting the navigation bar (breadcrumb) appropriately.
#}

{% set is_content = pagename.startswith(('contents/', 'genindex', 'modindex', 'py-', 'search')) %}
{% if is_content %}
{% set master_doc = 'contents/index' %}
{% set parents = parents[1:] %}
{% endif %}

{% block header %}
<div class="pageheader related" role="navigation" aria-label="related navigation">
  <ul>
    <li><a href="{{ pathto('index') }}">Home</a></li>
    <li><a href="{{ pathto('download/index') }}">Download</a></li>
    <li><a href="{{ pathto('contents/index') }}">Documentation</a></li>
    <li><a href="{{ pathto('community/index') }}">Community</a></li>
  </ul>
  <div class="logo">
    <a href="{{ pathto('index') }}">PyGreSQL</a>
  </div>
</div>

</div>
{% endblock %}

{% block relbar1 -%}
{%- if is_content -%}
    {{ super() }}
{% else %}
<div class="relbar-top"><div class="related norelbar">
<div class="subtitle">:: PostgreSQL module for Python ::</div>
</div></div>
{%- endif -%}
{%- endblock %}

{% block relbar2 -%}
{%- if is_content -%}
    {{ super() }}
{%- else -%}
<div class="relbar-bottom"><div class="related norelbar"></div></div>
{%- endif -%}
{%- endblock %}

{% block content -%}
{%- if is_content -%}
{{ super() }}
{%- else -%}
<div class="norelbar">{{ super() }}</div>
{%- endif -%}
{%- endblock %}