summaryrefslogtreecommitdiffstats
path: root/templates/releng/result_list.html
blob: be5783b39013ffa3e6c03d4a87d3bef41179477a (plain)
1
2
3
4
5
6
7
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
{% extends "base.html" %}
{% load static from staticfiles %}
{% load url from future %}

{% block content %}
<div class="box">
    <h2>Results for:
        {% if option %}{{ option.verbose_name|title }}: {{ value }}{% endif %}
        {{ iso_name|default:"" }}
    </h2>

    <p><a href="{% url 'releng-test-overview' %}">Go back to testing results</a></p>

    <table id="releng-result" class="results">
        <thead>
            <tr>
                <th>ISO</th>
                <th>Submitted By</th>
                <th>Date Submitted</th>
                <th>Architecture</th>
                <th>Success</th>
            </tr>
        </thead>
        <tbody>
            {% for test in test_list %}
            <tr>
                <td>{{ test.iso.name }}</td>
                <td>{{ test.user_name }}</td>
                <td>{{ test.created|date }}</td>
                <td>{{ test.architecture }}</td>
                <td><span class="success-{{ test.success|yesno }}">{{ test.success|yesno|capfirst }}</span></td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
    $(".results:not(:has(tbody tr.empty))").tablesorter({widgets: ['zebra']});
});
</script>
{% endblock %}