job.html 2.2 KB
Newer Older
A
air9 已提交
1 2
{% extends "base.html" %}

3
{% block title %}OECH{% endblock %}
A
air9 已提交
4 5 6

{% block page_content %}
    <div class="page-header">
T
theprocess 已提交
7
        <h3>openEuler Hardware Compatibility Test</h3>
A
air9 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
        <br>
        <a class='btn btn-primary' href="/results/{{ host }}/{{ id }}/{{ job }}/submit">Submit</a>
        <a class='btn' href="/results/{{ host }}/{{ id }}/{{ job }}/devices">Devices</a>
        <a class='btn' href="/results/{{ host }}/{{ id }}/{{ job }}/logs/job">Runtime</a>
        <a class='btn' href="/results/{{ host }}/{{ id }}/{{ job }}/attachment">Attachment</a>
    </div>

    <div class="page-header">
        <table class="table table-striped table-hover">
            <thead>
                <th colspan="2">Environment</th>
            </thead>
            <tbody>
                {% for key in info %}
                <tr>
                    <td width="50%">{{ key }}</td>
                    <td>{{ info.get(key) }}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>

    <div class="page-header">
        <table class="table table-striped table-hover">
            <thead>
                <th>Testcase</th>
                <th>Device</th>
                <th>Result</th>
            </thead>
            <tbody>
                {% for d in results %}
                <tr>
                    {% set int = d.get("device").get("INTERFACE", "") %}

                    {% if int %}
                        {% set testcase = d.get("name") + "-" + int %}
                    {% else %}
                        {% set testcase = d.get("name") %}
                    {% endif %}

                    {% if d.get("run") %}
                        {% set result = d.get("status") %}
                    {% else %}
                        {% set result = "" %}
                    {% endif %}

                    <td>{{ testcase }}</td>
                    <td><a href="/results/{{ host }}/{{ id }}/{{ job }}/devices/{{ int }}">{{ int }}</a></td>
                    <td><a href="/results/{{ host }}/{{ id }}/{{ job }}/logs/{{ testcase }}">{{ result }}</a>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}