base.html 3.32 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 25

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

29 30
    <script type="text/javascript" src="{% static 'libs/jquery/dist/jquery.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
Nicolas Joyard's avatar
Nicolas Joyard committed
31 32 33

    {{ position_form.media }}

Arnaud Fabre's avatar
Arnaud Fabre committed
34
    {% block head %}{% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
35 36 37 38 39 40 41 42 43

    <!-- 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
44 45
    {% get_current_language as LANGUAGE_CODE %}

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

66 67 68
            {% cache 3600 position_form LANGUAGE_CODE %}
                {% include '_position_form_modal.html' %}
            {% endcache %}
69

robin Tissot's avatar
robin Tissot committed
70
            <div class="col-sm-9 col-sm-offset-3 {% block container-class %}{% endblock %}">
Nicolas Joyard's avatar
Nicolas Joyard committed
71 72 73 74 75 76
                <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
77
                {% block content %}
Nicolas Joyard's avatar
Nicolas Joyard committed
78
                    <div class="text-danger">{% trans "This template is empty !" %}</div>
Nicolas Joyard's avatar
Nicolas Joyard committed
79
                {% endblock %}
Jamesie Pic's avatar
Jamesie Pic committed
80 81
            </div>
        </div>
luxcem's avatar
luxcem committed
82
    </div>
83 84 85 86 87
    <script>
        $(function () {
            $('[data-toggle="tooltip"]').tooltip()
        })
    </script>
Jamesie Pic's avatar
Jamesie Pic committed
88
</body>
luxcem's avatar
luxcem committed
89
</html>