{% if results %}
<table class="table table-bordered" style="margin-top: -20px">
    <tr>
        <th class="table-success" colspan="2">
            Results for this File
        </th>
    </tr>
    {% for file in results %}
        <tr>
            <td onclick="location.href='/analysis/{{ results[file]['parent_uid'] }}'">
                {{ results[file]["parent_uid"] | replace_uid_with_hid | safe }} | {{ file }}
            </td>
            <td class="p-0">
                <table class="table table-bordered mb-0">
                    {% for key in results[file] | sort %}
                        {% if key != "parent_uid" %}
                            <tr>
                                <td>{{ key }}</td>
                                <td>
                                    {% if 'time' in key %}
                                        {{ results[file][key] | nice_unix_time | safe }}
                                    {% else %}
                                        {{ results[file][key] | safe }}
                                    {% endif %}
                                </td>
                            </tr>
                        {% endif %}
                    {% endfor %}
                </table>
            </td>
        </tr>
    {% endfor %}
</table>
{% endif %}