{% extends "base.html" %}
{% block title %}Result summary{% endblock %}

{% block body %}
    <h1>Forcheck results (generated on {{ gen_date }})</h1>

    <table>
        <tr>
            <th>count</th>
            <th>id</th>
            <th>type</th>
            <th>message</th>
        </tr>
        {% for event in event_summary %}
        <tr>
            <td align='center'>{{ event.count }}</td>
            <td align='right'><a href='{{ to_root }}{{ event.link }}'>{{ event.numeric_code }}</a></td>
            <td align='center'>{{ event.category }}</td>
            <td align='left'>{{ event.message }}</td>
        </tr>
        {% endfor %}
    </table>
    <div class='legend'>
        I = information,
        E = Error,
        W = Warning,
        O = FORCHECK Error (Overflow)
    </div>

    <br /><br />
    <table>
        <tr>
            <th>Forcheck execution details</th>
        </tr>
        <tr>
            <td>
                <b>Environment variables</b>:<tt><pre>
$FCKDIR = {{ FCKDIR }}
$FCKCNF = {{ FCKCNF }}
$FCKPWD = {{ FCKPWD }}
</pre></tt>
                {% if command %}<b>Command used</b>: <tt>{{ command }}</tt><br /><br />{% endif %}
                {% if rc %}<b>Return status</b>: <tt>{{ rc }} ({{ rc_message }})</tt>{% endif %}
            </td>
        </tr>
    </table>
{% endblock %}

