Home | History | Annotate | Download | only in templates
      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <style>
      5 body {
      6     font-family: Verdana, sans-serif;
      7     margin: 0px;
      8     padding: 0px;
      9 }
     10 .status {
     11     display: block;
     12     float: left;
     13     margin: 1px;
     14     padding: 1px 2px;
     15     -moz-border-radius: 5px;
     16     -webkit-border-radius: 5px;
     17     border-radius: 5px;
     18     border: 1px solid #AAA;
     19     background-color: white;
     20     font-size: 11px;
     21 }
     22 .pass {
     23     background-color: #8FDF5F;
     24     border: 1px solid #4F8530;
     25     cursor: pointer;
     26 }
     27 .fail {
     28     background-color: #E98080;
     29     border: 1px solid #A77272;
     30     cursor: pointer;
     31 }
     32 .pending {
     33     background-color: #FFFC6C;
     34     border: 1px solid #C5C56D;
     35     cursor: pointer;
     36 }
     37 .error {
     38   background-color: #E0B0FF;
     39   border: 1px solid #ACA0B3;
     40   cursor: pointer;
     41 }
     42 </style>
     43 <script>
     44 function statusDetail(patch_id) {
     45   top.location = "/patch/" + patch_id
     46 }
     47 </script>
     48 </head>
     49 <body>
     50 <!-- FIXME: Find some way to remove this copy-and-paste code! -->
     51 <div class="status {{ summary.style_queue.state }}"{% if summary.style_queue.status %}
     52     onclick="statusDetail({{ summary.attachment_id }})"
     53     title="{{ summary.style_queue.status.date|timesince }} ago"{% endif %}>
     54   style
     55 </div>
     56 <div class="status {{ summary.chromium_ews.state }}"{% if summary.chromium_ews.status %}
     57     onclick="statusDetail({{ summary.attachment_id }})"
     58     title="{{ summary.chromium_ews.status.date|timesince }} ago"{% endif %}>
     59   chromium
     60 </div>
     61 <div class="status {{ summary.qt_ews.state }}"{% if summary.qt_ews.status %}
     62     onclick="statusDetail({{ summary.attachment_id }})"
     63     title="{{ summary.qt_ews.status.date|timesince }} ago"{% endif %}>
     64   qt
     65 </div>
     66 <div class="status {{ summary.gtk_ews.state }}"{% if summary.gtk_ews.status %}
     67     onclick="statusDetail({{ summary.attachment_id }})"
     68     title="{{ summary.gtk_ews.status.date|timesince }} ago"{% endif %}>
     69   gtk
     70 </div>
     71 <div class="status {{ summary.mac_ews.state }}"{% if summary.mac_ews.status %}
     72     onclick="statusDetail({{ summary.attachment_id }})"
     73     title="{{ summary.mac_ews.status.date|timesince }} ago"{% endif %}>
     74   mac
     75 </div>
     76 </body>
     77 </html>
     78