{% extends "base.html" %} {% load event_tags %} {% load display_tags %} {% load i18n %} {% 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=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 %}

{% blocktranslate with name=c_prod.name%}{{ name }} is affected by both critical and high severity vulnerabilities.{% endblocktranslate %}

{% trans "Critical Severity Vulnerabilities" %}

{% trans "High Severity Vulnerabilities" %}

{% elif c_prod.critical_present %}

{% blocktranslate with name=c_prod.name%} {{ name }} is affected by critical vulnerabilities.{% endblocktranslate %}

{% trans "Critical Severity Vulnerabilities" %}

{% elif c_prod.high_present %}

{% blocktranslate with name=c_prod.name%} {{ name }} is affected by high severity vulnerabilities.{% endblocktranslate %}

{% trans "High Severity Vulnerabilities" %}

{% endif %}

{% trans "Full Metrics" %}


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

{% trans "No Critical Products registered" %}

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

{% trans "Metric Counts" %}

{% if top_ten_products %}
{% for t in top_ten_products %} {% endfor %}
{% trans "Product" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "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 %}
{% if findings.count > max_findings_details %}
Note: {{ max_findings_details }} Findings listed of {{ findings.count }} total.
{% endif %} {% for finding in findings|slice:max_findings_details %} {% endfor %}
{% trans "Team" %} {% trans "Product" %} {% trans "Severity" %} {% trans "EPSS Score / Percentile" %} {% trans "Description" %} {% trans "Days
Open" %}
{% trans "Status" %} {% trans "Reporter" %}
{{ finding.test.engagement.product.prod_type.name }} {{ finding.test.engagement.product.name|truncatechars_html:20 }} {{ finding.severity_display }} {{ finding.epss_score|format_epss }} / {{ finding.epss_percentile|format_epss }} {{ finding.title|truncatechars_html:20 }} {{ finding.age }} {{ finding.status }} {{ finding.reporter }}

{% trans "Opened During Period" %}

{% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "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 product in in_period_details %} {% endfor %}
{% trans "Product" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %}
{{ product.product_name }} {{ product.critical }} {{ product.high }} {{ product.medium }} {{ product.low }} {{ product.info }} {{ product.total }}

{% trans "Accepted in Period" %}

{% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "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 product in accepted_in_period_details %} {% endfor %}
{% trans "Product" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %}
{{ product.product_name }} {{ product.critical }} {{ product.high }} {{ product.medium }} {{ product.low }} {{ product.info }} {{ product.total }}

{% trans "Closed in Period" %}

{% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "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 product in closed_in_period_details %} {% endfor %}
{% trans "Product" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %}
{{ product.product_name }} {{ product.critical }} {{ product.high }} {{ product.medium }} {{ product.low }} {{ product.info }} {{ product.total }}
{% for week in opened_per_week %} {% endfor %}
{% trans "Weekly" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %} {% trans "Closed*" %}
{{ week.grouped_date|date:"m-d-Y" }} {{ week.critical }} {{ week.high }} {{ week.medium }} {{ week.low }} {{ week.info }} {{ week.total }} {{ week.closed }}
{% for month in opened_per_month %} {% endfor %}
{% trans "Monthly" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %} {% trans "Closed*" %}
{{ month.grouped_date|date:"m-Y" }} {{ month.critical }} {{ month.high }} {{ month.medium }} {{ month.low }} {{ month.info }} {{ month.total }} {{ month.closed }}

{% trans "*Closed findings may have been opened outside of requested period." %}

{% for week in accepted_per_week %} {% endfor %}
{% trans "By Week" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %}
{{ week.grouped_date|date:"m-d-Y" }} {{ week.critical }} {{ week.high }} {{ week.medium }} {{ week.low }} {{ week.info }} {{ week.total }}
{% for month in accepted_per_month %} {% endfor %}
{% trans "By Month" %} {% trans "Critical" %} {% trans "High" %} {% trans "Medium" %} {% trans "Low" %} {% trans "Info" %} {% trans "Total" %}
{{ month.grouped_date|date:"m-Y" }} {{ month.critical }} {{ month.high }} {{ month.medium }} {{ month.low }} {{ month.info }} {{ month.total }}
{% trans "Days" %} {% trans "Bug Count" %}
{% trans "0 - 30 Days" %} {{ age_detail.age_under_30 }}
{% trans "31 - 60 Days" %} {{ age_detail.age_31_60 }}
{% trans "61 - 90 Days" %} {{ age_detail.age_61_90 }}
{% trans "91+ Days" %} {{ age_detail.age_90_plus }}
{% endif %} {% endblock %} {% block postscript %} {{ block.super }} {% include "dojo/filter_js_snippet.html" %} {% block metrics %} {% endblock metrics %} {% endblock %}