changeset 161:57b65e7765c1

Add support for the new HTML export format
author Benoît Allard <benoit.allard@greenbone.net>
date Tue, 30 Dec 2014 14:30:10 +0100
parents a7ce1660aaaf
children 07210df10edd
files farol/main.py farol/templates/base.j2
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/farol/main.py	Tue Dec 30 14:10:50 2014 +0100
+++ b/farol/main.py	Tue Dec 30 14:30:10 2014 +0100
@@ -103,7 +103,7 @@
     return render_template('welcome.j2',
         version=__version__,
         imports=[('New', 100), ('CVRF', 100)],
-        exports=[('CVRF', 100), ('OpenVAS NASL from RHSA', 85), ('OVAL', 5) ],
+        exports=[('CVRF', 100), ('OpenVAS NASL from RHSA', 85), ('HTML', 80), ('OVAL', 5) ],
         use_cases=[('Create a security advisory and publish as CVRF', 100),
                    ('Edit a security advisory in CVRF format', 100)]
     )
--- a/farol/templates/base.j2	Tue Dec 30 14:10:50 2014 +0100
+++ b/farol/templates/base.j2	Tue Dec 30 14:30:10 2014 +0100
@@ -71,7 +71,7 @@
     <li class="dropdown{{ ' active' if active == 'render' }}">
       <a href="#" class="dropdown-toggle" data-toggle="dropdown">Export <span class="caret"></span></a>
       <ul class="dropdown-menu" role="menu">
-        {% for format in ('cvrf', 'nasl', 'oval') %}<li><a href="{{ url_for('render', format_=format)}}">as {{ format | upper }}</a></li>{% endfor %}
+        {% for format in ('cvrf', 'nasl', 'oval', 'html') %}<li><a href="{{ url_for('render', format_=format)}}">as {{ format | upper }}</a></li>{% endfor %}
       </ul>
     </li>
   {% endif %}

http://farol.wald.intevation.org