comparison farol/templates/vulnerability/view_remediation.j2 @ 0:4a9f23230eba

Initial Release
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 24 Sep 2014 10:07:49 +0200
parents
children 2ce3676c9b2e
comparison
equal deleted inserted replaced
-1:000000000000 0:4a9f23230eba
1 {#
2 # Description:
3 # Web Template used in Farol Design
4 #
5 # Authors:
6 # BenoƮt Allard <benoit.allard@greenbone.net>
7 #
8 # Copyright:
9 # Copyright (C) 2014 Greenbone Networks GmbH
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24 -#}
25
26 {% extends "vulnerability/base.j2" %}
27 {% from "macros.j2" import label_value, panel %}
28 {% block title %}{{ remediation.getTitle() }}{% endblock %}
29
30 {% block i_content %}
31 <a class="pull-right" href="{{ url_for('.edit_remediation', ordinal=ordinal, index=index) }}">edit</a>
32 <div class='page-header'>
33 <h1>{{ remediation._type }}</h1>
34 </div>
35 <div class="form-horizontal">
36 {{ label_value('Date', remediation._date or '') }}
37 {{ label_value('Description', remediation._description) }}
38 {{ label_value('Entitlement', remediation._entitlement or '') }}
39 {{ label_value('URL', remediation._url | urlize) }}
40 </div>
41 {% if remediation._productids or remediation._groupids %}
42 {% call panel(heading="Products", title=2) %}
43 <ul>
44 {% for productid in remediation._productids %}
45 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ cvrf.getProductForID(productid)._name }}</a></li>
46 {% endfor %}
47 {% for groupid in remediation._groupids %}
48 {% with group = cvrf.getGroupForID(groupid) %}
49 <li>{{ group.getTitle() }}</li>
50 <ul>
51 {% for productid in cvrf.getGroupForID(groupid)._productids %}
52 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ cvrf.getProductForID(productid)._name }}</a></li>
53 {% endfor %}
54 </ul>
55 {% endwith %}
56 {% endfor %}
57 </ul>
58 {% endcall %}
59 {% endif %}
60 {% endblock %}

http://farol.wald.intevation.org