Mercurial > farol > farol
annotate farol/templates/welcome.j2 @ 147:0f19ece4e7e5
Add logos at multiple places
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Fri, 31 Oct 2014 12:12:48 +0100 |
parents | 67c4b299736e |
children | 3b93e8e7876b |
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 |
147
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
29 {% set active = "welcome" %} |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
30 |
125
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
31 {% macro progress_label(progress) -%} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
32 <span class="label label- |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
33 {%- 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
|
34 ">{{ progress }}%</span> |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
35 {%- endmacro %} |
7
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 title %}Welcome{% endblock %} |
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
38 |
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
39 {% block content %} |
125
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
40 <div class="well well-lg"> |
147
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
41 <div class="media"> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
42 <div class="media-left"> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
43 <img src="{{ url_for('static', filename="logo_120x120.png") }}"> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
44 </div> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
45 <div class="media-body"> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
46 <h1 class="media-heading">Farol <small>The Security Advisory Management Platform</small></h1> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
47 <div class="pull-right"><a class="btn btn-primary btn-lg" role="button" href="{{ url_for('new') }}" >Start !</a></div> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
48 <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> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
49 </div> |
0f19ece4e7e5
Add logos at multiple places
Benoît Allard <benoit.allard@greenbone.net>
parents:
125
diff
changeset
|
50 </div> |
7
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
51 </div> |
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
52 <div class="row"> |
125
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
53 <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
|
54 <div class="col-sm-3"> |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
55 {% call panel(heading="Platform status", collapsible=False) %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
56 <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
|
57 {% endcall %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
58 {% call panel(heading="Supported input formats", collapsible=False) %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
59 {% for format, progress in imports %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
60 <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
|
61 {% endfor %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
62 {% endcall %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
63 {% call panel(heading="Supported output formats", collapsible=False) %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
64 {% for format, progress in exports %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
65 <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
|
66 {% endfor %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
67 {% endcall %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
68 {% call panel(heading="Supported use cases", collapsible=False) %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
69 {% for use_case, progress in use_cases %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
70 <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
|
71 {% endfor %} |
67c4b299736e
Update look-and-feel
Benoît Allard <benoit.allard@greenbone.net>
parents:
113
diff
changeset
|
72 {% endcall %} |
7
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
73 </div> |
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
74 </div> |
8f41bb7f4681
Move the Document management routines to a document Blueprint
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff
changeset
|
75 {% endblock %} |