All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.zaproxy.ui.widget.html.erb Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
<%
   identified_risk_score = measure('identified_risk_score')

   total_alerts = measure('total_alerts')
   high_risk_alerts = measure('high_risk_alerts')
   medium_risk_alerts = measure('medium_risk_alerts')
   low_risk_alerts = measure('low_risk_alerts')
   info_risk_alerts = measure('info_risk_alerts')

   tooltip = message('widget.as_calculated_on_x', :params => l(@snapshot.created_at))

   if identified_risk_score
%>
    

    

<%= message('zap.widget.securityRating') -%> <%= format_measure(identified_risk_score) -%> <%= dashboard_configuration.selected_period? ? format_variation(identified_risk_score) : trend_icon(identified_risk_score) -%>

<%= message('zap.widget.totalAlerts') -%> <%= format_measure(total_alerts) -%> <%= dashboard_configuration.selected_period? ? format_variation(total_alerts) : trend_icon(total_alerts) -%>

<%= message('zap.widget.severity.high') -%>
<%= format_measure(high_risk_alerts) -%> <%= dashboard_configuration.selected_period? ? format_variation(high_risk_alerts) : trend_icon(high_risk_alerts, :empty => true) -%>
<%= message('zap.widget.severity.medium') -%>
<%= format_measure(medium_risk_alerts) -%> <%= dashboard_configuration.selected_period? ? format_variation(medium_risk_alerts) : trend_icon(medium_risk_alerts, :empty => true) -%>
<%= message('zap.widget.severity.low') -%>
<%= format_measure(low_risk_alerts) -%> <%= dashboard_configuration.selected_period? ? format_variation(low_risk_alerts) : trend_icon(low_risk_alerts, :empty => true) -%>
<%= message('zap.widget.severity.info') -%>
<%= format_measure(info_risk_alerts) -%> <%= dashboard_configuration.selected_period? ? format_variation(info_risk_alerts) : trend_icon(info_risk_alerts, :empty => true) -%>
<% end %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy