Mercurial > farol > farol
annotate 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 |
rev | line source |
---|---|
0 | 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 | |
102
65341d05a8f8
Spawn a Modal when loading a doc, and another one is already loaded
Benoît Allard <benoit.allard@greenbone.net>
parents:
77
diff
changeset
|
26 {% from "macros.j2" import modal, POST_button -%} |
65341d05a8f8
Spawn a Modal when loading a doc, and another one is already loaded
Benoît Allard <benoit.allard@greenbone.net>
parents:
77
diff
changeset
|
27 |
0 | 28 <!doctype html> |
29 | |
30 <html lang="en"> | |
31 <head> | |
28
6c65b16f2680
Rework the 'new' page
Benoît Allard <benoit.allard@greenbone.net>
parents:
26
diff
changeset
|
32 <meta charset="utf-8"> |
0 | 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> | |
26
33a3a36b5bf6
Use the navbar-inverse theme to come closer to greenbone, and apply it to footer also
Benoît Allard <benoit.allard@greenbone.net>
parents:
25
diff
changeset
|
40 <nav class="navbar navbar-inverse" role="navigation"> |
0 | 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> | |
109 | 50 <a class="navbar-brand" href="{{ url_for('welcome') }}" title="A Security Advisory Management Platform">Farol</a> |
0 | 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> | |
140
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
57 {% block navbar %} |
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
58 {% endblock %} |
77
641a2b589613
Product better HTML
Benoît Allard <benoit.allard@greenbone.net>
parents:
28
diff
changeset
|
59 </ul> |
0 | 60 <ul class="nav navbar-nav navbar-right"> |
140
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
61 {% block navbar_right %} |
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
62 {% endblock %} |
0 | 63 </ul> |
64 </div>{# /.navbar-collapse #} | |
65 </div>{# /.container-fluid #} | |
66 </nav> | |
67 <div class="main container"> | |
140
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
68 {% block pre_content %}{% endblock %} |
0 | 69 <div> |
70 {% block content %}{% endblock %} | |
71 </div> | |
140
3a56d5501ffa
Add HTTP error handling
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
72 {% block post_content %}{% endblock %} |
0 | 73 </div> |
26
33a3a36b5bf6
Use the navbar-inverse theme to come closer to greenbone, and apply it to footer also
Benoît Allard <benoit.allard@greenbone.net>
parents:
25
diff
changeset
|
74 <footer class="footer container-fluid navbar-inverse"> |
6
bb7334ff114a
Add the Greenbone Logo to the footer.
Benoît Allard <benoit.allard@greenbone.net>
parents:
1
diff
changeset
|
75 <div class="text-center"> |
bb7334ff114a
Add the Greenbone Logo to the footer.
Benoît Allard <benoit.allard@greenbone.net>
parents:
1
diff
changeset
|
76 <span class="text-muted">Copyright © 2014 Greenbone Networks GmbH</span> |
bb7334ff114a
Add the Greenbone Logo to the footer.
Benoît Allard <benoit.allard@greenbone.net>
parents:
1
diff
changeset
|
77 | |
8
2ce3676c9b2e
Ease the import of new documents
Benoît Allard <benoit.allard@greenbone.net>
parents:
7
diff
changeset
|
78 <span><a href="{{ url_for('about') }}">About Farol</a></span> |
6
bb7334ff114a
Add the Greenbone Logo to the footer.
Benoît Allard <benoit.allard@greenbone.net>
parents:
1
diff
changeset
|
79 </div> |
bb7334ff114a
Add the Greenbone Logo to the footer.
Benoît Allard <benoit.allard@greenbone.net>
parents:
1
diff
changeset
|
80 <a href="http://greenbone.net/" id="greenbone" class="logo_img text-hide center-block">Greenbone Networks GmbH</a> |
0 | 81 </footer> |
82 </body> | |
83 </html> |