summaryrefslogtreecommitdiffstats
path: root/WebKitTools/QueueStatusServer/templates/dashboard.html
blob: 14b7ede4983f87f8138c5004694ac716661e8ee6 (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
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<title>WebKit Bot Status</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/dashboard.css" />
<script>
function statusDetail(patch_id) {
  // FIXME: We'd like to use AJAX to show the details on this page.
  window.location = "/patch/" + patch_id
}
</script>
</head>
<body>
<h1>WebKit Bot Status</h1>
<table>
  <theader>
    <tr>
      <th>Bug</th>
      <th>Attachment</th>
      <th>Style</th>
      <th>Cr-Linux</th>
      <th>Cr-Win</th>
      <th>Qt</th>
      <th>Mac</th>
      <th>Win</th>
      <th>Gtk</th>
      <th>Commit</th>
    </tr>
  </thead>
  <tbody>{% for summary in summaries %}
    <tr>
      <td class="status">
        {{ summary.bug_id|force_escape|webkit_bug_id|safe }}
      </td>
      <td class="status">
        {{ summary.attachment_id|force_escape|webkit_attachment_id|safe }}
      </td>
      <!-- FIXME: Find some way to remove this copy-and-paste code! -->
      <td class="status {{ summary.style_queue.state }}"{% if summary.style_queue.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.style_queue.status.date|timesince }}"{% endif %}>
      </td>
      <td class="status {{ summary.chromium_ews.state }}"{% if summary.chromium_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.chromium_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.cr_win_ews.state }}"{% if summary.cr_win_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.cr_win_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.qt_ews.state }}"{% if summary.qt_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.qt_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.mac_ews.state }}"{% if summary.mac_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.mac_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.win_ews.state }}"{% if summary.win_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.win_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.gtk_ews.state }}"{% if summary.gtk_ews.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.gtk_ews.status.date|timesince }} ago"{% endif %}>
      </td>
      <td class="status {{ summary.commit_queue.state }}"{% if summary.commit_queue.status %}
          onclick="statusDetail({{ summary.attachment_id }})"
          title="{{ summary.commit_queue.status.date|timesince }} ago"{% endif %}>
      </td>
    </tr>{% endfor %}
  </tbody>
</table>
</html>