base.html 3.34 KB
Newer Older
1
{% load i18n %}<!DOCTYPE html>
2 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="">

9
    <title>{% block title %}{% block title-page %}{% endblock %} | {% block title-site %}Circle{% endblock %}{% endblock %}</title>
10 11 12 13 14 15 16 17

    <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
    <script src="{{ STATIC_URL }}dashboard/js/jquery.knob.js"></script>
18 19
    <script src="{{ STATIC_URL}}dashboard/bootstrap-slider/bootstrap-slider.js"></script>
    <link rel="stylesheet" href="{{ STATIC_URL }}dashboard/bootstrap-slider/slider.css"/>
20 21 22 23 24 25
    <link href="{{ STATIC_URL }}dashboard/dashboard.css" rel="stylesheet">
    <script src="{{ STATIC_URL }}dashboard/dashboard.js"></script>
  </head>

  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
        <div class="navbar-header">  
          <a class="navbar-brand" href="{% url "dashboard.index" %}">CIRCLE</a>
            <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">
          <ul class="nav navbar-nav pull-right">
            {% block navbar-ul %}
            {% endblock %}    
          </ul>
          <a class="navbar-brand pull-right" href="/network/" style="color: white; font-size: 10px;">Network</a>
          <a class="navbar-brand pull-right" href="/admin/" style="color: white; font-size: 10px;">Admin</a>
          {% if user.is_authenticated %}
          <a class="navbar-brand pull-right" href="{% url "logout" %}?next={% url "login" %}" style="color: white; font-size: 10px;">Log out {{user}}</a>
          {% else %}
          <a class="navbar-brand pull-right" href="{% url "login" %}?next={% url "dashboard.index" %}" style="color: white; font-size: 10px;">Login</a>
          {% endif %}
        </div><!-- .collapse .navbar-collapse -->
    </div><!-- navbar navbar-inverse navbar-fixed-top -->
48 49

    <div class="container">
50 51
      {% block messages %}
      <div class="messagelist">
52
      {% if messages %}
53 54 55
      {% for message in messages %}
      <div class="alert
          {% if message.tags %} alert-{% if message.tags == "error" %}danger{% else %}{{ message.tags }}{% endif %}{% endif %}">
56
          {{ message|safe }}
57 58 59
      </div>
      {% endfor %}
      {% endif %}
60
      </div>
61 62 63 64
      {% endblock messages %}
      {% block content %}
        <h1 class="alert alert-error">Please override "content" block.</h1>
      {% endblock %}
65 66 67 68 69 70
      <hr />
      <footer>
        <p>&copy; Company 2013</p>
      </footer>
    </div> <!-- /container -->
  </body>
71 72
{% block extra_js %}
{% endblock %}
73
</html>