{% extends "show_analysis.html" %}

{% block analysis_result %}

    <table class="table table-bordered">
        <colgroup>
             <col width="12.5%">
             <col width="87.5%">
        </colgroup>
        <thead class="thead-light">
            <tr>
                <th colspan=2> Showing Analysis: {{ selected_analysis | replace_underscore}}</th>
            </tr>
        </thead>
        <tbody class="table-analysis">
            {% if firmware.processed_analysis[selected_analysis]['skipped'] %}
            <tr>
                <td class="table-warning">Analysis was skipped</td>
                <td>{{ firmware.processed_analysis[selected_analysis]['skipped'] }}</td>
            </tr>
            {% endif %}
            {% if firmware.processed_analysis[selected_analysis]['analysis_date'] %}
            <tr>
                <td class="table-head-light">Time of Analysis</td>
                <td>{{ firmware.processed_analysis[selected_analysis]['analysis_date'] | nice_unix_time }}</td>
            </tr>
            {% endif %}
            {% if firmware.processed_analysis[selected_analysis]['plugin_version'] %}
            <tr>
                <td class="table-head-light">Plugin Version</td>
                <td>{{ firmware.processed_analysis[selected_analysis]['plugin_version']}}</td>
            </tr>
            {% endif %}
            {% if firmware.processed_analysis[selected_analysis]['system_version'] %}
            <tr>
                <td class="table-head-light">System Version</td>
                <td>{{ firmware.processed_analysis[selected_analysis]['system_version']}}</td>
            </tr>
            {% endif %}
            {% if 'skipped' not in firmware.processed_analysis[selected_analysis] %}
                {% block analysis_result_details %}

                {% endblock %}
            {% endif %}
        </tbody>
    </table>

    {% block ajax %}
    {% endblock %}
{% endblock %}
