Home | History | Annotate | Download | only in templates
      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>WebKit Bot Status</title>
      5 <link type="text/css" rel="stylesheet" href="/stylesheets/dashboard.css" />
      6 <script>
      7 function statusDetail(patch_id) {
      8   // FIXME: We'd like to use AJAX to show the details on this page.
      9   window.location = "/patch/" + patch_id
     10 }
     11 </script>
     12 </head>
     13 <body>
     14 <h1>WebKit Bot Status</h1>
     15 <table>
     16   <theader>
     17     <tr>
     18       <th>Bug</th>
     19       <th>Attachment</th>
     20       <th>Style</th>
     21       <th>Chromium</th>
     22       <th>Qt</th>
     23       <th>Mac</th>
     24       <th>Gtk</th>
     25       <th>Commit</th>
     26     </tr>
     27   </thead>
     28   <tbody>{% for summary in summaries %}
     29     <tr>
     30       <td class="status">
     31         {{ summary.bug_id|force_escape|webkit_bug_id|safe }}
     32       </td>
     33       <td class="status">
     34         {{ summary.attachment_id|force_escape|webkit_attachment_id|safe }}
     35       </td>
     36       <!-- FIXME: Find some way to remove this copy-and-paste code! -->
     37       <td class="status {{ summary.style_queue.state }}"{% if summary.style_queue.status %}
     38           onclick="statusDetail({{ summary.attachment_id }})"
     39           title="{{ summary.style_queue.status.date|timesince }}"{% endif %}>
     40       </td>
     41       <td class="status {{ summary.chromium_ews.state }}"{% if summary.chromium_ews.status %}
     42           onclick="statusDetail({{ summary.attachment_id }})"
     43           title="{{ summary.chromium_ews.status.date|timesince }} ago"{% endif %}>
     44       </td>
     45       <td class="status {{ summary.qt_ews.state }}"{% if summary.qt_ews.status %}
     46           onclick="statusDetail({{ summary.attachment_id }})"
     47           title="{{ summary.qt_ews.status.date|timesince }} ago"{% endif %}>
     48       </td>
     49       <td class="status {{ summary.mac_ews.state }}"{% if summary.mac_ews.status %}
     50           onclick="statusDetail({{ summary.attachment_id }})"
     51           title="{{ summary.mac_ews.status.date|timesince }} ago"{% endif %}>
     52       </td>
     53       <td class="status {{ summary.gtk_ews.state }}"{% if summary.gtk_ews.status %}
     54           onclick="statusDetail({{ summary.attachment_id }})"
     55           title="{{ summary.gtk_ews.status.date|timesince }} ago"{% endif %}>
     56       </td>
     57       <td class="status {{ summary.commit_queue.state }}"{% if summary.commit_queue.status %}
     58           onclick="statusDetail({{ summary.attachment_id }})"
     59           title="{{ summary.commit_queue.status.date|timesince }} ago"{% endif %}>
     60       </td>
     61     </tr>{% endfor %}
     62   </tbody>
     63 </table>
     64 </html>
     65