Mercurial > farol > farol
annotate farol/templates/about.j2 @ 125:67c4b299736e
Update look-and-feel
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 23 Oct 2014 16:18:30 +0200 |
parents | e410f6f0f80f |
children | 0f19ece4e7e5 |
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 | |
26 {% extends "base.j2" %} | |
27 {% from "macros.j2" import textinput, textarea %} | |
28 | |
29 {% block title %}About{% endblock %} | |
30 | |
31 {% block content %} | |
32 <div class="page-header"> | |
125
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
23
diff
changeset
|
33 <h1>Farol <small>The Security Advisory Management Platform</small></h1> |
0 | 34 </div> |
35 | |
36 <div> | |
125
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
23
diff
changeset
|
37 <p>This web platform offers to review, create, edit and transform security advisories supporting various input and output formats.</p> |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
23
diff
changeset
|
38 <p>During your session the advisory is stored in a cache from which you should save your changes to your local file system.</p> |
1
63b00c10ada8
Add Configuration support, warning when in DEBUG mode, and Deployment instruction
Benoît Allard <benoit.allard@greenbone.net>
parents:
0
diff
changeset
|
39 {% if config.DEBUG and not config.DEBUG_SURE %} |
12
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
40 <hr> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
41 <h3 id="debug">Debug Mode</h3> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
42 <p>Your application is Running in Debug mode. While this might be a choice you made, this is not suitable for Production deployment. The <a href="/console">console</a> is an example of unsafe debug facilities.</p> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
43 <p>You can turn the Debug mode off by setting <code>DEBUG=False</code> in the configuration file located at the following path: <code>{{ instance_dir }}/farol.cfg</code>.</p> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
44 <p>If you want to remove this message and the DEBUG Footer alert, but still want to keep the Debug mode on, just set <code>DEBUG_SURE=True</code> in your configuration file.</p> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
45 {% endif %} |
1
63b00c10ada8
Add Configuration support, warning when in DEBUG mode, and Deployment instruction
Benoît Allard <benoit.allard@greenbone.net>
parents:
0
diff
changeset
|
46 <hr> |
12
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
47 <h3 id="caching">Document cache</h3> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
48 {% if not caching %} |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
49 <p class="text-muted">Document cache is <strong>disabled</strong> by configuration.</p> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
50 {% elif caching == 'global' %} |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
51 <p>All user share a <strong>global cache</strong>.</p> |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
52 {% else %} |
4219d6fb4c38
Implement three kind of caches
Benoît Allard <benoit.allard@greenbone.net>
parents:
8
diff
changeset
|
53 <p>Each session have a <strong>private cache</strong>, sessions are bound to a browser <em>session</em>. They are usually reset when the browser is restarted.</p> |
1
63b00c10ada8
Add Configuration support, warning when in DEBUG mode, and Deployment instruction
Benoît Allard <benoit.allard@greenbone.net>
parents:
0
diff
changeset
|
54 {% endif %} |
0 | 55 <hr> |
19
56cab60172ad
Fix issue in text import, Improve display of running versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
15
diff
changeset
|
56 <p><strong>Farol</strong> is published under GPLv2+, and is Copyright © Greenbone Networks GmbH.</p> |
56cab60172ad
Fix issue in text import, Improve display of running versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
15
diff
changeset
|
57 <span class="text-muted pull-right"><small>SessionID: {{ session.get('id', '') }}</small></span> |
56cab60172ad
Fix issue in text import, Improve display of running versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
15
diff
changeset
|
58 <p class="text-muted"><small>Now running: |
15
f8d51aaac8bc
Display sessionID in about page as well as various versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
12
diff
changeset
|
59 {% for product, version in versions %} |
19
56cab60172ad
Fix issue in text import, Improve display of running versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
15
diff
changeset
|
60 {{ product }}: <tt>{{ version }}</tt>{{ ' / ' if not loop.last }} |
15
f8d51aaac8bc
Display sessionID in about page as well as various versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
12
diff
changeset
|
61 {% endfor %} |
19
56cab60172ad
Fix issue in text import, Improve display of running versions
Benoît Allard <benoit.allard@greenbone.net>
parents:
15
diff
changeset
|
62 </small></p> |
0 | 63 </div> |
64 {% endblock %} |