blob: 808d8d709d077e4a93f79bb066bbafeb569b9140 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<!DOCTYPE html>
<html>
<head>
<title>WebKit Queue Status</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/dashboard.css" />
<style>
.queue_bubble {
border: 1px solid black;
margin-bottom: 10px;
border-radius: 10px;
padding: 5px;
}
.queue_name {
float:left;
}
.last_heard_from {
float: right;
}
.status_text {
clear: both;
}
.alive {
background-color: #8FDF5F;
}
.behind {
background-color: #FFFC6C;
}
.dead {
background-color: #E98080;
}
</style>
</head>
<body>
<h1>WebKit Queue Status</h1>
{% for queue in queues %}
<div class="queue_bubble {{ queue.status_class }}">
<div class="queue_name">
<a href="/queue-status/{{ queue.name }}">
{{ queue.display_name }}
</a>
</div>
{% if queue.last_heard_from %}
<div class="last_heard_from">{{ queue.last_heard_from|timesince }} ago</div>
{% endif %}
<div class="status_text">
Status: {{ queue.status_text|force_escape|urlize|webkit_linkify|safe }}
</div>
<div>
{{ queue.pending_items_count }} pending
</div>
</div>
{% endfor %}
</body>
</html>
|