comparison farol/templates/layout.j2 @ 140:3a56d5501ffa

Add HTTP error handling
author Benoît Allard <benoit.allard@greenbone.net>
date Mon, 27 Oct 2014 16:46:18 +0100
parents farol/templates/base.j2@67c4b299736e
children 97fafc195ca0
comparison
equal deleted inserted replaced
139:584587a000a2 140:3a56d5501ffa
1 {#
2 # Description:
3 # Web Template used in Farol Design
4 #
5 # Authors:
6 # BenoƮt Allard <benoit.allard@greenbone.net>
7 #
8 # Copyright:
9 # Copyright (C) 2014 Greenbone Networks GmbH
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24 -#}
25
26 {% from "macros.j2" import modal, POST_button -%}
27
28 <!doctype html>
29
30 <html lang="en">
31 <head>
32 <meta charset="utf-8">
33 <title>Farol - {% block title %}{% endblock %}</title>
34 <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.css') }}">
35 <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
36 </head>
37 <body>
38 <script src="{{ url_for('static', filename='jquery-2.1.1.min.js') }}"></script>
39 <script src="{{ url_for('static', filename='bootstrap.js') }}"></script>
40 <nav class="navbar navbar-inverse" role="navigation">
41 <div class="container">
42 {# Brand and toggle get grouped for better mobile display #}
43 <div class="navbar-header">
44 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
45 <span class="sr-only">Toggle navigation</span>
46 <span class="icon-bar"></span>
47 <span class="icon-bar"></span>
48 <span class="icon-bar"></span>
49 </button>
50 <a class="navbar-brand" href="{{ url_for('welcome') }}" title="A Security Advisory Management Platform">Farol</a>
51 </div>
52
53 {# Collect the nav links, forms, and other content for toggling #}
54 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
55 <ul class="nav navbar-nav">
56 <li{% if active == 'new' %} class="active"{% endif %}><a href="{{ url_for('new') }}">New</a></li>
57 {% block navbar %}
58 {% endblock %}
59 </ul>
60 <ul class="nav navbar-nav navbar-right">
61 {% block navbar_right %}
62 {% endblock %}
63 </ul>
64 </div>{# /.navbar-collapse #}
65 </div>{# /.container-fluid #}
66 </nav>
67 <div class="main container">
68 {% block pre_content %}{% endblock %}
69 <div>
70 {% block content %}{% endblock %}
71 </div>
72 {% block post_content %}{% endblock %}
73 </div>
74 <footer class="footer container-fluid navbar-inverse">
75 <div class="text-center">
76 <span class="text-muted">Copyright &copy; 2014 Greenbone Networks GmbH</span>
77 |
78 <span><a href="{{ url_for('about') }}">About Farol</a></span>
79 </div>
80 <a href="http://greenbone.net/" id="greenbone" class="logo_img text-hide center-block">Greenbone Networks GmbH</a>
81 </footer>
82 </body>
83 </html>

http://farol.wald.intevation.org