base.html 3.28 KB
Newer Older
1
{% load cache %}{% load i18n %}<!DOCTYPE html>
Jamesie Pic's avatar
Jamesie Pic committed
2
3
4
5
6
7
8
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
luxcem's avatar
luxcem committed
9
10
11
    <link rel="icon" type="image/png" href="{{ STATIC_URL }}img/favicon.ico" />
    <!-- Set the viewport width to device width for mobile -->
    <meta name="viewport" content="width=device-width" />
Anthony Maton's avatar
Anthony Maton committed
12
      <title>{% block title %}Home - Political Memory{% endblock %}</title>
13

14
15
16
    {% load compress %}
    {% load staticfiles %}
    {% compress css %}
17
    <link rel="stylesheet" href="{% static 'libs/bootstrap/dist/css/bootstrap.min.css' %}" type="text/css" />
18
    <link rel="stylesheet" href="{% static 'libs/fontawesome/css/font-awesome.min.css' %}" type="text/css" />
19
    <link rel="stylesheet" href="{% static 'libs/flag-icon-css/css/flag-icon.min.css' %}" type="text/css" />
Jamesie Pic's avatar
Jamesie Pic committed
20
    <link rel="stylesheet" href="{% static 'css/custom.css' %}" type="text/css" />
21
    {% endcompress %}
Jamesie Pic's avatar
Jamesie Pic committed
22

Arnaud Fabre's avatar
Arnaud Fabre committed
23
24
25
26
27
    {% compress js %}
    <script type="text/javascript" src="{% static 'libs/jquery/dist/jquery.js' %}"></script>
    <script type="text/javascript" src="{% static 'libs/bootstrap/dist/js/bootstrap.js' %}"></script>
    {% endcompress %}
    {% block head %}{% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
28
29
30
31
32
33
34
35
36
37
38
39

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3 custom-nav">
40
            {% block sidebar %}
Jamesie Pic's avatar
Jamesie Pic committed
41
                {% include '_base_intro.html' %}
42
                <hr class="hidden-xs"/>
43
44
                {% get_current_language as LANGUAGE_CODE %}
                {% cache 3600 LANGUAGE_CODE %} {# 1 hour #}
Jamesie Pic's avatar
Jamesie Pic committed
45
                {% include '_base_search.html' %}
46
                {% endcache %}
47
                <hr class="hidden-xs"/>
48
                <a href="{% url "representative-list" %}" class="btn btn-primary btn-block">
49
50
51
                  {% trans "Find a mep" %}</a>
                <a href="{% url "theme-list" %}" class="btn btn-primary btn-block">
                  {% trans "Explore the themes" %}</a>
Jamesie Pic's avatar
Jamesie Pic committed
52
                <br />
53
            {% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
54
55
            </div>

56
57
58
            {% include '_base_position.html' %}
            {% include '_position_form_modal.html' %}

robin Tissot's avatar
robin Tissot committed
59
            <div class="col-sm-9 col-sm-offset-3 {% block container-class %}{% endblock %}">
Jamesie Pic's avatar
Jamesie Pic committed
60
            {% block content %}
61
            <div class="text-danger">This template is empty !</div>
Jamesie Pic's avatar
Jamesie Pic committed
62
63
64
            {% endblock %}
            </div>
        </div>
luxcem's avatar
luxcem committed
65
    </div>
Jamesie Pic's avatar
Jamesie Pic committed
66
67
68
69
70
71
72

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="./js/bootstrap.min.js"></script>
    <script src="./js/docs.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="./js/ie10-viewport-bug-workaround.js"></script>

73
74
    {% include '_base_search_form_script.html' %}

Jamesie Pic's avatar
Jamesie Pic committed
75
76
77
78
79
80
    <script>
    $(function () {
        $('[data-toggle="tooltip"]').tooltip()
    })
    </script>
</body>
luxcem's avatar
luxcem committed
81
</html>