view 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
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 %}

{% 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">
  <h1>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>
</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 %}

http://farol.wald.intevation.org