Mercurial > farol > farol
view farol/templates/vulnerability/view.j2 @ 24:6de88f98983c
Fix url to add a cvss vector
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 02 Oct 2014 11:25:17 +0200 |
parents | 4a9f23230eba |
children | 9b0fb5ca7eff |
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, label_value %} {% block title %}{{ vulnerability._title }}{% endblock %} {% set active = 'vulnerability' %} {% block content %} <a class="pull-right" href="{{ url_for('.edit', ordinal=vulnerability._ordinal) }}">edit</a> <div class='page-header'> <h1>{{ vulnerability._title or '' }} <small>{{ vulnerability._type or '' }} (#{{ vulnerability._ordinal }})</small></h1> </div> {% if vulnerability._id %} {% call panel(heading="ID", title=3, collapsible=False) %} <div class="form-horizontal"> {{ label_value("System Name", vulnerability._id._systemname) }} {{ label_value("Value", vulnerability._id._value) }} </div> {% endcall %} {% endif %} {% call panel(heading="Notes (%d)" % vulnerability._notes | length, title=3) %} <ul> {% for note in vulnerability._notes %} <li><a href="{{ url_for('.view_note', ordinal=vulnerability._ordinal, note_ordinal=note._ordinal)}}">{{ note.getTitle() }}</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_note', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} <div class="form-horizontal"> {% if vulnerability._discoverydate %}{{ label_value("Discovery Date", vulnerability._discoverydate) }}{% endif %} {% if vulnerability._releasedate %}{{ label_value("Release Date", vulnerability._releasedate) }}{% endif %} </div> {% call panel(heading="Involvements (%d)" % vulnerability._involvements | length, title=3) %} <ul> {% for involvement in vulnerability._involvements %} <li><a href="{{ url_for('.view_involvement', ordinal=vulnerability._ordinal, index=loop.index0) }}">{{ involvement.getTitle() }}</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_involvement', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% if vulnerability._cve %} <div class="form-horizontal"> {{ label_value("CVE", vulnerability._cve) }} </div> {% endif %} {% call panel(heading="CWE (%d)" % vulnerability._cwes | length, title=3) %} <ul> {% for cwe in vulnerability._cwes %} <li>{{ cwe._id }} - {{ cwe._value}} (<a href="{{ url_for('.edit_cwe', ordinal=vulnerability._ordinal, index=loop.index0) }}">edit</a>)</li> {% endfor %} <a href="{{ url_for('.add_cwe', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% call panel(heading="Product Statuses (%d)" % vulnerability._productstatuses | length, title=3) %} <ul> {% for status in vulnerability._productstatuses %} <li><a href="{{ url_for('.view_status', ordinal=vulnerability._ordinal, index=loop.index0) }}">{{ status.getTitle() }}</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_status', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% call panel(heading="Threats (%d)" % vulnerability._threats | length, title=3) %} <ul> {% for threat in vulnerability._threats %} <li><a href="{{ url_for('.view_threat', ordinal=vulnerability._ordinal, index=loop.index0) }}">{{ threat.getTitle() }}</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_threat', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% call panel(heading="CVSS Score Sets (%d)" % vulnerability._cvsss | length, title=3) %} <ul> {% for cvss in vulnerability._cvsss %} <li><a href="{{ url_for('.view_cvss', ordinal=vulnerability._ordinal, index=loop.index0) }}">{{ cvss._vector }} ({{ cvss._basescore }})</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_cvss', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% call panel(heading="Remediations (%d)" % vulnerability._remediations | length, title=3) %} <ul> {% for remediation in vulnerability._remediations %} <li><a href="{{ url_for('.view_remediation', ordinal=vulnerability._ordinal, index=loop.index0) }}">{{ remediation.getTitle() }}</a></li> {% endfor %} </ul> <a href="{{ url_for('.add_remediation', ordinal=vulnerability._ordinal) }}" class="pull-right">add</a> {% endcall %} {% call panel(heading="References (%d)" % vulnerability._references | length , title=3) %} <ul> {% for reference in vulnerability._references %} <li><a href="{{ reference._url }}" target="_blank">{{ reference._description }}{% if reference._type %} ({{ reference._type }}){% endif %}</a> (<a href="{{ url_for('.edit_reference', ordinal=vulnerability._ordinal, index=loop.index0) }}">edit</a>)</li> {% endfor %} </ul> <a class="pull-right" href="{{ url_for('.add_reference', ordinal=vulnerability._ordinal) }}">add</a> {% endcall %} {% call panel(heading="Acknowledgments (%d)" % vulnerability._acknowledgments | length, title=3) %} <ul> {% for ack in vulnerability._acknowledgments %} <li><a href="{{ url_for('.view_acknowledgment', ordinal=vulnerability._ordinal, index=loop.index0)}}">{{ ack.getTitle() }}</a></li> {% endfor %} </ul> <a class="pull-right" href="{{ url_for('.add_acknowledgment', ordinal=vulnerability._ordinal) }}">add</a> {% endcall %} {% endblock %}