WebKitTools/QueueStatusServer/templates/statusbubble.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<!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;
    cursor: pointer;
}
.none {
    cursor: auto;
}
.pass {
    background-color: #8FDF5F;
    border: 1px solid #4F8530;
}
.fail {
    background-color: #E98080;
    border: 1px solid #A77272;
}
.pending {
    background-color: #FFFC6C;
    border: 1px solid #C5C56D;
}
.error {
  background-color: #E0B0FF;
  border: 1px solid #ACA0B3;
}
</style>
<script>
function statusDetail(patch_id) {
  top.location = "/patch/" + patch_id
}
</script>
</head>
<body>
{% for bubble in bubbles %}
<div class="status {{ bubble.state }}"{% if bubble.status %}
    onclick="statusDetail({{ bubble.attachment_id }})"
    title="{{ bubble.status.date|timesince }} ago"{% endif %}>
  {{ bubble.name }}
  {% if bubble.queue_position %}
  (#{{ bubble.queue_position }})
  {% endif %}
</div>
{% endfor %}
</body>
</html>