Mercurial > farol > farol
view farol/templates/welcome.j2 @ 178:e46fb0027e52 tip
Added tag 1.1.1 for changeset ae584cfe6252
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 08 Jan 2015 14:37:57 +0100 |
parents | 3b93e8e7876b |
children |
line wrap: on
line source
{# # Description: # Web Template used in Farol Design # # Authors: # BenoƮt Allard <benoit.allard@greenbone.net> # # Copyright: # Copyright (C) 2014 Greenbone Networks GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -#} {% extends "base.j2" %} {% from "macros.j2" import panel %} {% set active = "welcome" %} {% macro progress_label(progress) -%} <span class="label label- {%- if progress < 70 %}danger{% elif progress < 95 %}warning{% else %}success{% endif -%} ">{{ progress }}%</span> {%- endmacro %} {% block title %}Welcome{% endblock %} {% block content %} <div class="well well-lg"> <div class="media"> <div class="media-left"> <img src="{{ url_for('static', filename="logo_120x120.png") }}"> </div> <div class="media-body"> <h1 class="media-heading">Farol <small>The Security Advisory Management Platform</small></h1> <div class="pull-right"><a class="btn btn-primary btn-lg" role="button" href="{{ url_for('new') }}" >Start !</a></div> <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> <p>Farol owns no database. Any data is imported from other locations as needed and changed documents must finally be downloaded to save them.</p> </div> </div> </div> <div class="row"> <div class="col-sm-9"><img src="{{ url_for('static', filename="flower.png") }}" class="img-responsive img-thumbnail" alt="Security Advisories interactions"></div> <div class="col-sm-3"> {% call panel(heading="Platform status", collapsible=False) %} <div><span class="pull-right badge">{{ version }}</span>Farol version:</div> {% endcall %} {% call panel(heading="Supported input formats", collapsible=False) %} {% for format, progress in imports %} <div>{{ format }} <span class="pull-right">{{ progress_label(progress) }}</span></div> {% endfor %} {% endcall %} {% call panel(heading="Supported output formats", collapsible=False) %} {% for format, progress in exports %} <div>{{ format }} <span class="pull-right">{{ progress_label(progress) }}</span></div> {% endfor %} {% endcall %} {% call panel(heading="Supported use cases", collapsible=False) %} {% for use_case, progress in use_cases %} <div><span class="pull-right">{{ progress_label(progress) }}</span>{{ use_case }}</div> {% endfor %} {% endcall %} </div> </div> {% endblock %}