{% extends "analysis_plugins/general_information.html" %}

{% block analysis_result_details %}

	<tr>
		<td>Detection Ratio</td>
		<td>{{ firmware.processed_analysis[selected_analysis]['positives'] | infection_color | safe  }} / {{ firmware.processed_analysis[selected_analysis]['number_of_scanners'] }}</td>
	</tr>
	<tr>
		<th class="table-success" colspan=2>Detailed Results</th>
	</tr>
	{% for scan_result in firmware.processed_analysis[selected_analysis]['scans'] %}
	<tr>
		<td>{{scan_result}}</td>
		<td>{{firmware.processed_analysis[selected_analysis]['scans'][scan_result]['result'] | infection_color | safe}}</td>
	<tr>
	{% endfor %}
	<tr>
		<th class="table-success" colspan=2>Scanner Versions</th>
	</tr>
	{% for scan_result in firmware.processed_analysis[selected_analysis]['scans'] %}
	<tr>
		<td>{{scan_result}}</td>
		<td><pre class="border rounded p-2 bg-light" style="white-space: pre-wrap;">{{firmware.processed_analysis[selected_analysis]['scans'][scan_result]['version']}}</pre></td>
	<tr>
	{% endfor %}

{% endblock %}