base.html 2.83 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
    <link rel="icon" type="image/png" href="{% static "dashboard/img/favicon.png" %}"/>
12

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

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

    <!-- 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 %}
25 26 27 28
  </head>

  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
29
      <div class="navbar-header">
30 31 32 33 34 35
        {% block navbar-brand %}
          <a class="navbar-brand" href="{% url "dashboard.index" %}" style="padding: 10px 15px;">
            {% include "branding.html" %}
          </a>
        {% endblock %}

36 37 38 39 40 41 42 43 44
          <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 -->
45
    </div><!-- navbar navbar-inverse navbar-fixed-top -->
46 47

    <div class="container">
48
      {% block messages %}
49 50 51 52 53
        <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 %}">
54
          {{ message|safe }}
55 56 57
            </div>
          {% endfor %}
        {% endif %}
58
        </div>
59 60 61 62
      {% endblock messages %}
      {% block content %}
        <h1 class="alert alert-error">Please override "content" block.</h1>
      {% endblock %}
63
    </div> <!-- /container -->
64

65
    <footer>
66 67 68 69
      <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>
70 71
      <span class="pull-right">{{ COMPANY_NAME }}</span>
    </footer>
72

73
  <script src="{% static "jquery/dist/jquery.min.js" %}"></script>
74
  <script src="{{ STATIC_URL }}jsi18n/{{ LANGUAGE_CODE }}/djangojs.js"></script>
75
  {% compressed_js 'all' %}
76 77 78 79 80 81 82 83 84

  {% block extra_script %}
  {% endblock %}

  {% block extra_js %}
  {% endblock %}

  {% block extra_etc %}
  {% endblock %}
85
  </body>
86
</html>