base.html 3.82 KB
Newer Older
Nicolas Joyard's avatar
Nicolas Joyard committed
1
2
3
<!DOCTYPE html>
{% load cache %}
{% load i18n %}
4
{% load fontawesome %}
Nicolas Joyard's avatar
Nicolas Joyard committed
5
{% load staticfiles %}
Jamesie Pic's avatar
Jamesie Pic committed
6
7
8
9
10
11
12
<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
13
14
    <!-- Set the viewport width to device width for mobile -->
    <meta name="viewport" content="width=device-width" />
15
16
17

    <title>{% block title %}Home - Political Memory{% endblock %}</title>
    <link rel="icon" type="image/png" href="{% static 'images/favicon.png' %}" />
18

19
20
    {% fontawesome_stylesheet %}

21
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css" />
22
    <link rel="stylesheet" href="{% static 'libs/flag-icon-css/css/flag-icon.min.css' %}" type="text/css" />
23
24
    <link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type="text/css" />

25
26
27

    {% load compress %}
    {% compress css %}
28
    <link rel="stylesheet" href="{% static 'css/fonts.css' %}" type="text/css" />
Jamesie Pic's avatar
Jamesie Pic committed
29
    <link rel="stylesheet" href="{% static 'css/custom.css' %}" type="text/css" />
30
    {% endcompress %}
Jamesie Pic's avatar
Jamesie Pic committed
31

32
    <script type="text/javascript" src="{% static 'libs/jquery/dist/jquery.min.js' %}"></script>
33
    <script type="text/javascript" src="{% static 'js/jquery-ui.min.js' %}"></script>
34
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
Nicolas Joyard's avatar
Nicolas Joyard committed
35
36
37

    {{ position_form.media }}

Arnaud Fabre's avatar
Arnaud Fabre committed
38
    {% block head %}{% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
39
40
41
42
43
44
45
46
47

    <!-- 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>
Nicolas Joyard's avatar
Nicolas Joyard committed
48
49
    {% get_current_language as LANGUAGE_CODE %}

Jamesie Pic's avatar
Jamesie Pic committed
50
51
52
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3 custom-nav">
53
            {% block sidebar %}
Jamesie Pic's avatar
Jamesie Pic committed
54
                {% include '_base_intro.html' %}
55
                <hr class="hidden-xs"/>
56
                {% cache 3600 search_form LANGUAGE_CODE %}
Nicolas Joyard's avatar
Nicolas Joyard committed
57
                    {% include '_base_search.html' %}
58
                {% endcache %}
59
                <hr class="hidden-xs"/>
60
                <a href="{% url "representative-list" %}" class="btn btn-primary btn-block">
61
                  {% trans "Check out all representatives" %}</a>
62
                <a href="{% url "theme-list" %}" class="btn btn-primary btn-block">
63
                  {% trans "Explore themes" %}</a>
64
65
                <a href="{% url "dossier-list" %}" class="btn btn-primary btn-block">
                  {% trans "Browse all dossiers" %}</a>
Jamesie Pic's avatar
Jamesie Pic committed
66
                <br />
67
            {% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
68
69
            </div>

70
71
72
            {% cache 3600 position_form LANGUAGE_CODE %}
                {% include '_position_form_modal.html' %}
            {% endcache %}
73

robin Tissot's avatar
robin Tissot committed
74
            <div class="col-sm-9 col-sm-offset-3 {% block container-class %}{% endblock %}">
Nicolas Joyard's avatar
Nicolas Joyard committed
75
76
77
78
79
80
                <noscript>
                    <br>
                    <div class="alert alert-warning">
                        {% trans "Memopol has reduced features without Javascript, please enable it in your browser!" %}
                    </div>
                </noscript>
Nicolas Joyard's avatar
Nicolas Joyard committed
81
                {% block content %}
Nicolas Joyard's avatar
Nicolas Joyard committed
82
                    <div class="text-danger">{% trans "This template is empty !" %}</div>
Nicolas Joyard's avatar
Nicolas Joyard committed
83
                {% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
84
85
            </div>
        </div>
luxcem's avatar
luxcem committed
86
    </div>
87
88
89
90
91
    <script>
        $(function () {
            $('[data-toggle="tooltip"]').tooltip()
        })
    </script>
92
93
94
95
96
97
98
99
100
101
102
    <script>
$(function() {
  $("#search").autocomplete({
    source: "{% url 'representative-search-name-autocomplete' %}",
    minLength: 2,
    select: function(event, ui){
      window.location.href = ui.item.link;
    }
    });
  });
</script>
Jamesie Pic's avatar
Jamesie Pic committed
103
</body>
luxcem's avatar
luxcem committed
104
</html>