{% extends "base.html" %} {% load event_tags %} {% load display_tags %} {% load static %} {% block add_styles %} {{ block.super }} .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs { border-bottom: 0; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .tabs-below > .nav-tabs { border-top: 1px solid #ddd; } .tabs-below > .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabs-below > .nav-tabs > li > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below > .nav-tabs > li > a:hover, .tabs-below > .nav-tabs > li > a:focus { border-top-color: #ddd; border-bottom-color: transparent; } .tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover, .tabs-below > .nav-tabs > .active > a:focus { border-color: transparent #ddd #ddd #ddd; } .tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li { float: none; } .tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left > .nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #ddd; } .tabs-left > .nav-tabs > li > a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left > .nav-tabs > li > a:hover, .tabs-left > .nav-tabs > li > a:focus { border-color: #eeeeee #dddddd #eeeeee #eeeeee; } .tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover, .tabs-left > .nav-tabs .active > a:focus { border-color: #ddd transparent #ddd #ddd; *border-right-color: #ffffff; } .tabs-right > .nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #ddd; } .tabs-right > .nav-tabs > li > a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right > .nav-tabs > li > a:hover, .tabs-right > .nav-tabs > li > a:focus { border-color: #eeeeee #eeeeee #eeeeee #dddddd; } .tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover, .tabs-right > .nav-tabs .active > a:focus { border-color: #ddd #ddd #ddd transparent; *border-left-color: #ffffff; } #opened_per_month_2, #active_per_month, #accepted_per_month_2, #opened_per_week_2, #accepted_per_week_2 {height: 300px} {% endblock %} {% block content %} {{ block.super }}

{{ name }} {% comment %} {% if not critical_prods %} {% endif %} {% endcomment %} {% if not critical_prods %} {% endif %}

{% include "dojo/filter_snippet.html" with form=findings.form clear_link="/metrics/product/type" %}
{% if critical_prods %}
{% for c_prod in critical_prods %}
{{ c_prod.name }}

{% if c_prod.critical_present and c_prod.high_present %}

{{ c_prod.name }} is affected by both critical and high severity vulnerabilities.

Critical Severity Vulnerabilities

High Severity Vulnerabilities

{% elif c_prod.critical_present %}

{{ c_prod.name }} is affected by critical vulnerabilities.

Critical Severity Vulnerabilities

{% elif c_prod.high_present %}

{{ c_prod.name }} is affected by high severity vulnerabilities.

High Severity Vulnerabilities

{% endif %}

Full Metrics


{% endfor %}
{% elif name == "Critical Product Metrics" %}

No Critical Products registered

{% endif %}
{% if opened_per_month %}
Open Bug Count by Month
{% endif %} {% if active_per_month %}
Active Bug Count by Month
{% endif %} {% if accepted_per_month %}
Risk Accepted Bug Count by Month
{% endif %} {% if not critical_prods %}
Open Bug Count by Week
Risk Accepted Bug Count by Week

Metric Counts

{% if top_ten_products %}
{% for t in top_ten_products %} {% endfor %}
Product Critical High Medium Low Total
{{ t.name }} {{ t.critical|default_if_none:0 }} {{ t.high|default_if_none:0 }} {{ t.medium|default_if_none:0 }} {{ t.low|default_if_none:0 }} {{ t.total|default_if_none:0 }}
{% endif %}
{% for finding in findings.qs %} {% endfor %}
Team Product Severity Description Days
Open
Status Reporter
{{ finding.test.engagement.product.prod_type.name }} {{ finding.test.engagement.product.name|truncatechars_html:20 }} {{ finding.severity_display }} {{ finding.title|truncatechars_html:20 }} {{ finding.age }} {{ finding.status }} {{ finding.reporter }}

Opened During Period

Critical High Medium Low Info Total
{{ in_period_counts.Critical }} {{ in_period_counts.High }} {{ in_period_counts.Medium }} {{ in_period_counts.Low }} {{ in_period_counts.Info }} {{ in_period_counts.Total }}
{% for key, value in in_period_details.items %} {% endfor %}
Product Critical High Medium Low Info Total
{{ key }} {{ value.Critical }} {{ value.High }} {{ value.Medium }} {{ value.Low }} {{ value.Info }} {{ value.Total }}

Accepted in Period

Critical High Medium Low Info Total
{{ accepted_in_period_counts.critical|default_if_none:0 }} {{ accepted_in_period_counts.high|default_if_none:0 }} {{ accepted_in_period_counts.medium|default_if_none:0 }} {{ accepted_in_period_counts.low|default_if_none:0 }} {{ accepted_in_period_counts.info|default_if_none:0 }} {{ accepted_in_period_counts.total|default_if_none:0 }}
{% for key, value in accepted_in_period_details.items %} {% endfor %}
Product Critical High Medium Low Info Total
{{ key }} {{ value.Critical }} {{ value.High }} {{ value.Medium }} {{ value.Low }} {{ value.Info }} {{ value.Total }}

Closed in Period

Critical High Medium Low Info Total
{{ closed_in_period_counts.Critical }} {{ closed_in_period_counts.High }} {{ closed_in_period_counts.Medium }} {{ closed_in_period_counts.Low }} {{ closed_in_period_counts.Info }} {{ closed_in_period_counts.Total }}
{% for key, value in closed_in_period_details.items %} {% endfor %}
Product Critical High Medium Low Info Total
{{ key }} {{ value.Critical }} {{ value.High }} {{ value.Medium }} {{ value.Low }} {{ value.Info }} {{ value.Total }}
{% for week in opened_per_week|slice:'1:' %} {% endfor %}
Weekly Critical High Medium Low Total Closed*
{{ week.1|date:"m-d-Y" }} {{ week.2 }} {{ week.3 }} {{ week.4 }} {{ week.5 }} {{ week.6 }} {{ week.7 }}
{% for month in opened_per_month|slice:'1:' %} {% endfor %}
Monthly Critical High Medium Low Total Closed*
{{ month.1|date:"m-Y" }} {{ month.2 }} {{ month.3 }} {{ month.4 }} {{ month.5 }} {{ month.6 }} {{ month.7 }}

*Closed findings may have been opened outside of requested period.

{% for week in accepted_per_week|slice:'1:' %} {% endfor %}
By Week Critical High Medium Low Total
{{ week.1|date:"m-d-Y" }} {{ week.2 }} {{ week.3 }} {{ week.4 }} {{ week.5 }} {{ week.6 }}
{% for month in accepted_per_month|slice:'1:' %} {% endfor %}
By Month Critical High Medium Low Total
{{ month.1|date:"m-Y" }} {{ month.2 }} {{ month.3 }} {{ month.4 }} {{ month.5 }} {{ month.6 }}
Days Bug Count
0 - 30 Days {{ age_detail.0 }}
31 - 60 Days {{ age_detail.1 }}
61 - 90 Days {{ age_detail.2 }}
91+ Days {{ age_detail.3 }}
{% endif %}


{% endblock %} {% block postscript %} {{ block.super }} {% include "dojo/filter_js_snippet.html" %} {% block metrics %} {% endblock metrics %} {% endblock %}