Mercurial > farol > farol
view farol/templates/about.j2 @ 15:f8d51aaac8bc
Display sessionID in about page as well as various versions
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 30 Sep 2014 14:45:03 +0200 |
parents | 4219d6fb4c38 |
children | 56cab60172ad |
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 textinput, textarea %} {% block title %}About{% endblock %} {% block content %} <div class="page-header"> <h1>Farol <small>A Security Advisory Management (Web) Platform</small></h1> </div> <div> <p>Farol is a web platform to manipulate Security Advisories. The main structure is highly inspired from the structure of a CVRF document.</p> <p>This platform is meant as a way to review / create / edit / publish Security Advisories in an accessible way</p> <p>In the current version, Advisories not currently saved are kept in memory of the running process. If the process terminates, and they are not saved, documents are lost.</p> {% if config.DEBUG and not config.DEBUG_SURE %} <hr> <h3 id="debug">Debug Mode</h3> <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> <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> <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> {% endif %} <hr> <h3 id="caching">Document cache</h3> {% if not caching %} <p class="text-muted">Document cache is <strong>disabled</strong> by configuration.</p> {% elif caching == 'global' %} <p>All user share a <strong>global cache</strong>.</p> {% else %} <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> {% endif %} <hr> <h5>Versions:</h5> <ul class="list-inline"> {% for product, version in versions %} <li>{{ product }}: <tt><small>{{ version }}</small></tt></li> {% endfor %} </ul> <p><strong>Farol</strong> is published under GPLv2+, and is Copyright © Greenbone Networks GmbH.</p> <p class="text-muted text-right"><small>SessionID: {{ session.get('id', '') }}</small></p> </div> {% endblock %}