base.html 3.08 KB
Newer Older
1 2
{% load i18n %}
<!DOCTYPE html>
3 4 5 6 7 8
<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="">
Kálmán Viktor committed
9
    <link rel="icon" type="image/png" href="{{ STATIC_URL}}dashboard/img/favicon.png"/>
10

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

    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
15
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
16 17 18 19 20 21 22 23 24 25
    <link rel="stylesheet" href="{{ STATIC_URL }}/template.css">

    <!-- 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
      <a href="#">{% trans "Legal notice" %}</a> |
      <a href="#">{% trans "Policy" %}</a> |
      <a href="#">{% trans "Help" %}</a> |
65 66 67
      <a href="#">{% trans "Support" %}</a>
      <span class="pull-right">{{ COMPANY_NAME }}</span>
    </footer>
68
  </body>
69 70

  <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
71
  <script src="{{ STATIC_URL }}dashboard/loopj-jquery-simple-slider/js/simple-slider.js"></script>
72 73
  <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  <script src="{{ STATIC_URL }}jsi18n/{{ LANGUAGE_CODE }}/djangojs.js"></script>
74
  {% include 'autocomplete_light/static.html' %}
75 76 77 78 79 80 81 82 83

  {% block extra_script %}
  {% endblock %}

  {% block extra_js %}
  {% endblock %}

  {% block extra_etc %}
  {% endblock %}
84
</html>