base.html 3.44 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% get_current_language as lang %}
<!DOCTYPE html>
<html lang="{{lang}}">
  <head>
    <meta charset="utf-8">
    <title>{% block title %}Firewall GUI{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    <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">
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet" />
    <style type="text/css">
    body {
      padding-top:40px;
    }

    /* note: this doesn't really work */
    a i:hover {
        text-decoration: none;
    }

    footer {
        margin-top: 45px;
    }

    .messagelist {
        margin-top: 25px;
    }
    </style>

    <!-- 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]-->
    <!--<link href="{% static "css/network.css" %}" rel="stylesheet">-->
    {% block extra_css %}{% endblock %}
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-header">  
          <a class="navbar-brand" href="{% url "network.index" %}">CIRCLE Network</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">
             {% include "network/menu.html" %}
            </ul>
        </div><!-- .collapse .navbar-collapse -->
    </div><!-- navbar navbar-inverse navbar-fixed-top -->
    <div class="container">
        {% block messages %}
        {% if messages %}
        <div class="messagelist">
        {% for message in messages %}
        <div class="alert
            {% if message.tags %} alert-{% if message.tags == "error" %}danger{% else %}{{ message.tags }}{% endif %}{% endif %}">
            {{ message }}
        </div>
        {% endfor %}
        </div>
        {% endif %}
        {% endblock messages %}
        {% block content %}
        <div class="alert-block">This is an abstract base template.</div>
        {% endblock %}
    </div><!-- .container -->

    <div class="footer-container container">
        <footer>
            <p class="pull-right"><a href="#">Vissza az oldal tetejére</a></p>
            <p>&copy; 2013 BME Közigazgatási Informatikai Központ
        </footer>
    </div><!-- .footer-container .container -->

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="{% url "network.js_catalog" %}"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
85
    <script src="{% static "js/bootbox.min.js" %}"></script>
86 87 88 89 90 91 92 93 94 95
    <!--<script src="{% static "js/select2-3.4.0/select2.min.js" %}"></script>-->
    <script src="{% static "js/network.js" %}"></script>
    <script>
    {% block extra_js %}
    {% endblock %}
    </script>
    {% block extra_etc %}
    {% endblock %}
  </body>
</html>