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       {% for header in headers %}
     21       <th>{{ header }}</th>
     22       {% endfor %}
     23     </tr>
     24   </thead>
     25   <tbody>{% for row in rows %}
     26     <tr>
     27       <td class="status-cell">
     28         {{ row.bug_id|force_escape|webkit_bug_id|safe }}
     29       </td>
     30       <td class="status-cell">
     31         {{ row.attachment_id|force_escape|webkit_attachment_id|safe }}
     32       </td>
     33       {% for bubble in row.bubbles %}
     34       <td class="status-cell {{ bubble.status_class }}"
     35         {% if bubble.status %}
     36           onclick="statusDetail({{ row.attachment_id }})"
     37           title="{{ bubble.status_date|timesince }}"
     38         {% endif %}>
     39       </td>
     40       {% endfor %}
     41     </tr>{% endfor %}
     42   </tbody>
     43 </table>
     44 </html>
     45