hackedteam/test-av

View on GitHub
data/html/analysis.html

Summary

Maintainability
Test Coverage
<%inherit file="base-web.html" />
<%def name="content()">
    <div class="tasks">
        <div class="page-header">
            <h1>Analysis Tasks</h1>
        </div>
        <table class="table table-striped table-bordered">
            <thead><tr><th>ID</th><th style="width: 20%;">Analysis</th><th style="width: 40%;">File Name</th><th>Added</th><th>Status</th></tr></thead>
            <tbody>
            % for r in rows:
                <tr>
                    <td>${r.id}</td>
                    <td>
                        <a href="/analysis/view/${r.id}"><span class="mono">${r.desc}</span></a>
                    </td>
                    <td>${os.path.basename(r.exe.file_path)}</td>
                    <td>${r.created_on}</td>
                    <td>
                        % if r.status == 0:
                            % if r.lock == 0:
                                PENDING
                            % elif r.lock == 1:
                                PROCESSING
                            % endif
                        % elif r.status == 1:
                            FAILED
                        % elif r.status == 2:
                            SUCCEEDED
                        % endif
                    </td>
                </tr>
            % endfor
            </tbody>
        </table>
    </div>
</%def>