Mercurial > farol > farol
comparison farol/templates/vulnerability/view.j2 @ 91:6a61c02f2156
Add deletion of CWEs
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 16:03:04 +0200 |
parents | 08a24e470de2 |
children | 3848faa88cd5 |
comparison
equal
deleted
inserted
replaced
90:2201d0ea0bf3 | 91:6a61c02f2156 |
---|---|
22 # along with this program; if not, write to the Free Software | 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. | 23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
24 -#} | 24 -#} |
25 | 25 |
26 {% extends "base.j2" %} | 26 {% extends "base.j2" %} |
27 {% from "macros.j2" import panel, label_value %} | 27 {% from "macros.j2" import panel, label_value, delete_button %} |
28 {% block title %}{{ vulnerability._title or '' }}{% endblock %} | 28 {% block title %}{{ vulnerability._title or '' }}{% endblock %} |
29 | 29 |
30 {% set active = 'vulnerability' %} | 30 {% set active = 'vulnerability' %} |
31 | 31 |
32 {% block content %} | 32 {% block content %} |
68 </div> | 68 </div> |
69 {% endif %} | 69 {% endif %} |
70 {% call panel(heading="CWE", badge=vulnerability._cwes | length, title=3) %} | 70 {% call panel(heading="CWE", badge=vulnerability._cwes | length, title=3) %} |
71 <ul> | 71 <ul> |
72 {% for cwe in vulnerability._cwes %} | 72 {% for cwe in vulnerability._cwes %} |
73 <li>{{ cwe._id }} - {{ cwe._value}} (<a href="{{ url_for('.edit_cwe', ordinal=vulnerability._ordinal, index=loop.index0) }}">edit</a>)</li> | 73 <li><div>{{ cwe._id }} - {{ cwe._value}} (<a href="{{ url_for('.edit_cwe', ordinal=vulnerability._ordinal, index=loop.index0) }}">edit</a>){{ delete_button(url_for('.del_cwe', ordinal=vulnerability._ordinal, index=loop.index0)) }}</div></li> |
74 {% endfor %} | 74 {% endfor %} |
75 <a href="{{ url_for('.add_cwe', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> | 75 <a href="{{ url_for('.add_cwe', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> |
76 {% endcall %} | 76 {% endcall %} |
77 {% call panel(heading="Product Statuses", badge=vulnerability._productstatuses | length, title=3) %} | 77 {% call panel(heading="Product Statuses", badge=vulnerability._productstatuses | length, title=3) %} |
78 <ul> | 78 <ul> |