<!DOCTYPE html>
<html>
<head>
<style>
body {
    font-family: Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
}
.status {
    display: block;
    float: left;
    margin: 1px;
    padding: 1px 2px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #AAA;
    background-color: white;
    font-size: 11px;
}
.pass {
    background-color: #8FDF5F;
    border: 1px solid #4F8530;
    cursor: pointer;
}
.fail {
    background-color: #E98080;
    border: 1px solid #A77272;
    cursor: pointer;
}
.pending {
    background-color: #FFFC6C;
    border: 1px solid #C5C56D;
    cursor: pointer;
}
.error {
  background-color: #E0B0FF;
  border: 1px solid #ACA0B3;
  cursor: pointer;
}
</style>
<script>
function statusDetail(patch_id) {
  top.location = "/patch/" + patch_id
}
</script>
</head>
<body>
<!-- FIXME: Find some way to remove this copy-and-paste code! -->
<div class="status {{ summary.style_queue.state }}"{% if summary.style_queue.status %}
    onclick="statusDetail({{ summary.attachment_id }})"
    title="{{ summary.style_queue.status.date|timesince }} ago"{% endif %}>
  style
</div>
<div 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 %}>
  chromium
</div>
<div 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 %}>
  qt
</div>
<div 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 %}>
  gtk
</div>
<div 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 %}>
  mac
</div>
</body>
</html>
