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

{% block analysis_result_details %}

    {% if firmware.processed_analysis[selected_analysis]['init_type'] %}
        <tr>
            <td class="table-head-light">Init system</td>
            <td class="table-head-light">{{ firmware.processed_analysis[selected_analysis]['init_type'][0]}}</td>
        </tr>
    {% endif %}
    {% if firmware.processed_analysis[selected_analysis]['description'] %}
        <tr>
            <td>Description</td>
            <td>{{ firmware.processed_analysis[selected_analysis]['description'][0]}}</td>
        </tr>
    {% endif %}
    {% for key, value in firmware.processed_analysis[selected_analysis].items()|sort %}
        {% if key | is_not_mandatory_analysis_entry(['init_type', 'description']) %}
            <tr>
                <td>{{ key }}</td>
                <td>
                    <pre class="border rounded p-2 bg-light" style="white-space: pre-wrap;"><code>{{ value }}</code></pre>
                </td>
            </tr>
        {% endif %}
    {% endfor %}

{% endblock %}