annotate farol/templates/welcome.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 57983a663cc6
children 0f19ece4e7e5
rev   line source
7
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
1 {#
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
2 # Description:
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
3 # Web Template used in Farol Design
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
4 #
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
5 # Authors:
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
6 # BenoƮt Allard <benoit.allard@greenbone.net>
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
7 #
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
8 # Copyright:
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
9 # Copyright (C) 2014 Greenbone Networks GmbH
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
10 #
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
11 # This program is free software; you can redistribute it and/or
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
12 # modify it under the terms of the GNU General Public License
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
13 # as published by the Free Software Foundation; either version 2
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
14 # of the License, or (at your option) any later version.
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
15 #
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
16 # This program is distributed in the hope that it will be useful,
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
19 # GNU General Public License for more details.
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
20 #
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
21 # You should have received a copy of the GNU General Public License
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
22 # along with this program; if not, write to the Free Software
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
24 -#}
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
25
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
26 {% extends "base.j2" %}
125
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
27 {% from "macros.j2" import panel %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
28
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
29 {% macro progress_label(progress) -%}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
30 <span class="label label-
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
31 {%- if progress < 70 %}danger{% elif progress < 95 %}warning{% else %}success{% endif -%}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
32 ">{{ progress }}%</span>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
33 {%- endmacro %}
7
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
34
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
35 {% block title %}Welcome{% endblock %}
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
36
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
37 {% block content %}
125
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
38 <div class="well well-lg">
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
39 <h1>Farol <small>The Security Advisory Management Platform</small></h1>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
40 <div class="pull-right"><a class="btn btn-primary btn-lg" role="button" href="{{ url_for('new') }}" >Start !</a></div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
41 <p>This web platform offers to review, create, edit and transform security advisories supporting various input and output formats. During your session the advisory is stored in a cache from which you should save your changes to your local file system.</p>
7
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
42 </div>
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
43 <div class="row">
125
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
44 <div class="col-sm-9"><img src="{{ url_for('static', filename="flower.png") }}" class="img-responsive img-thumbnail" alt="Security Advisories interactions"></div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
45 <div class="col-sm-3">
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
46 {% call panel(heading="Platform status", collapsible=False) %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
47 <div><span class="pull-right badge">{{ version }}</span>Farol version:</div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
48 {% endcall %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
49 {% call panel(heading="Supported input formats", collapsible=False) %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
50 {% for format, progress in imports %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
51 <div>{{ format }} <span class="pull-right">{{ progress_label(progress) }}</span></div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
52 {% endfor %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
53 {% endcall %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
54 {% call panel(heading="Supported output formats", collapsible=False) %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
55 {% for format, progress in exports %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
56 <div>{{ format }} <span class="pull-right">{{ progress_label(progress) }}</span></div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
57 {% endfor %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
58 {% endcall %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
59 {% call panel(heading="Supported use cases", collapsible=False) %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
60 {% for use_case, progress in use_cases %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
61 <div><span class="pull-right">{{ progress_label(progress) }}</span>{{ use_case }}</div>
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
62 {% endfor %}
67c4b299736e Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents: 113
diff changeset
63 {% endcall %}
7
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
64 </div>
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
65 </div>
8f41bb7f4681 Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
66 {% endblock %}

http://farol.wald.intevation.org