base.html 2.71 KB
Newer Older
1
{% load i18n %}
2 3
{% load staticfiles %}
{% load compressed %}
4
<!DOCTYPE html>
5 6 7 8 9 10
<html lang="{{lang}}">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
11
    {% include "open-graph.html" %}
12
    <link rel="icon" type="image/png" href="{% static "dashboard/img/favicon.png" %}"/>
13

14
    <title>{% block title %}{% block title-page %}{% endblock %} | {% block title-site %}CIRCLE{% endblock %}{% endblock %}</title>
15

16
    {% compressed_css 'all' %}
17 18 19 20 21 22 23 24 25

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    {% block extra_link %}{% endblock %}

    {% block extra_css %}{% endblock %}
26 27 28 29
  </head>

  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
30
      <div class="navbar-header">
31 32 33 34 35 36 37 38 39 40
        {% block navbar-brand %}{% endblock %}
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
      </div><!-- .navbar-header -->
      <div class="collapse navbar-collapse">
        {% block navbar %}{% endblock %}
      </div><!-- .collapse .navbar-collapse -->
41
    </div><!-- navbar navbar-inverse navbar-fixed-top -->
42 43

    <div class="container">
44
      {% block messages %}
45 46 47 48 49
        <div class="messagelist">
        {% if messages %}
          {% for message in messages %}
            <div class="alert
              {% if message.tags %} alert-{% if message.tags == "error" %}danger{% else %}{{ message.tags }}{% endif %}{% endif %}">
50
          {{ message|safe }}
51 52 53
            </div>
          {% endfor %}
        {% endif %}
54 55 56 57 58
      </div>
      {% endblock messages %}
      {% block content %}
        <h1 class="alert alert-error">Please override "content" block.</h1>
      {% endblock %}
59
    </div> <!-- /container -->
60

61
    <footer>
62 63 64 65
      <a href="{% url "info.legal" %}">{% trans "Legal notice" %}</a> |
      <a href="{% url "info.policy" %}">{% trans "Policy" %}</a> |
      <a href="{% url "info.help" %}">{% trans "Help" %}</a> |
      <a href="{% url "info.support" %}">{% trans "Support" %}</a>
66 67
      <span class="pull-right">{{ COMPANY_NAME }}</span>
    </footer>
68

69
  <script src="{% static "jquery/dist/jquery.min.js" %}"></script>
70
  <script src="{{ STATIC_URL }}jsi18n/{{ LANGUAGE_CODE }}/djangojs.js"></script>
71
  {% compressed_js 'all' %}
72 73 74 75 76 77 78 79 80

  {% block extra_script %}
  {% endblock %}

  {% block extra_js %}
  {% endblock %}

  {% block extra_etc %}
  {% endblock %}
81
  </body>
82
</html>