summaryrefslogtreecommitdiffstats
path: root/Tools/QueueStatusServer/templates/queuestatus.html
blob: c68abf1cff485ca5c0dd54bd9ba3bdf1dd769a6e (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>{{ page_title }}</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/dashboard.css" />
</head>
<body>
<h1>{{ page_title }}</h1>

<h3>Recent Status</h3>

<div class="status-details">
  <ul>
    {% for status_group in status_groups %}
        {% with status_group.0 as title_status %}
            <li class="status-group">
                {% if title_status.active_bug_id %}
                    <span class="status-bug">
                        Patch {{ title_status.active_patch_id|force_escape|webkit_attachment_id|safe }} from bug
                        {{ title_status.active_bug_id|force_escape|webkit_bug_id|safe }}:
                    </span>
                {% endif %}
                
                {% ifequal status_group|length 1 %}
                    {% with title_status as status %}
                        {% include 'includes/singlequeuestatus.html' %}
                    {% endwith %}
                {% else %}
                    <ul>
                        {% for status in status_group %}
                            <li class="status">
                                {% include 'includes/singlequeuestatus.html' %}
                            </li>
                        {% endfor %}
                    </ul>
                {% endifequal %}
            </li>
        {% endwith %}
    {% endfor %}
  </ul>
</div>

<h3>Patches in queue</h3>
<table>
    <tr><th>Position</th><th>Patch</th><th>Lock Acquired</th></tr>
    {% for row in work_item_rows %}
    <tr>
        <td>#{{ forloop.counter }}</td>
        <td>
          {{ row.attachment_id|force_escape|webkit_attachment_id|safe }}
        </td>
        <td>
            {% if row.lock_time %}
                {{ row.lock_time|timesince }} ago
            {% endif %}
        </td>
    </tr>
    {% endfor %}
</table>

</body>
</html>