File: layout.html

package info (click to toggle)
python-djangosaml2 1.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: python: 3,066; xml: 327; makefile: 18; sh: 9
file content (55 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (2)
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
{% extends "!layout.html" %}

{% block extrahead %}
    <link href="{{ pathto('_static/custom.css', True) }}" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="{{ pathto('_static/favicon.ico', True) }}">
{% endblock %}

<!-- LOGO TEMPLATE OVERLOAD -->

{% block sidebartitle %}

{% if logo %}
    {# Not strictly valid HTML, but it's the only way to display/scale
        it properly, without weird scripting or heaps of work
    #}
    <a href="{{ pathto(master_doc) }}" id="logo_main"><img src="{{ pathto('_static/logo.jpg', 1) }}" class="logo" alt="Logo" /></a>
{% endif %}

{% if logo and theme_logo_only %}
    <a id="title_under_logo" href="{{ pathto(master_doc) }}">
{% else %}
    <a id="title_under_logo" href="{{ pathto(master_doc) }}"> {{ project }}
{% endif %}
</a>

{% if theme_display_version %}
    {%- set nav_version = version %}
    {% if READTHEDOCS and current_version %}
        {%- set nav_version = current_version %}
    {% endif %}
    {% if nav_version %}
        <div class="version">
            {{ nav_version }}
        </div>
    {% endif %}
{% endif %}

{% include "searchbox.html" %}

{% endblock %}



<!-- MOBILE TOP BAR OVERLOAD -->
{% block mobile_nav %}
    <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
    {% if logo %}
    <a href="{{ pathto(master_doc) }}">
      <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>
    </a>
    {% endif %}
    <a href="{{ pathto(master_doc) }}">
        {{ project }}
    </a>
{% endblock %}