File: statusbubble.html

package info (click to toggle)
qtwebkit-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 291,692 kB
  • ctags: 268,122
  • sloc: cpp: 1,360,420; python: 70,286; ansic: 42,986; perl: 35,476; ruby: 12,236; objc: 9,465; xml: 8,396; asm: 3,873; yacc: 2,397; sh: 1,647; makefile: 650; lex: 644; java: 110
file content (96 lines) | stat: -rw-r--r-- 2,087 bytes parent folder | download | duplicates (5)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<style>
body {
    font-family: Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
}
#bubbleContainer {
    display: inline-block;
    white-space: nowrap;
}
.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;
    text-decoration: none;
    color: black;
}
.status:hover {
    border-color: #666;
}
.none {
    cursor: auto;
}
.none:hover {
    border-color: #AAA;
}
.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;
}
.queue_position {
    font-size: 9px;
}
form {
    display: inline-block;
}
</style>
<script>
window.addEventListener("message", function(e) {
  if (e.data == 'containerMetrics') {
    e.source.postMessage({'width': bubbleContainer.offsetWidth, 'height': bubbleContainer.offsetHeight},
        e.origin);
  } else
    console.log("Unknown postMessage: " + e.data);
}, false);
</script>
</head>
<body>
<div id="bubbleContainer">
  {% for bubble in bubbles %}
  <a class="status {{ bubble.state }}" target="_top"
  {% if bubble.status %}
      href="/patch/{{ bubble.attachment_id }}"
      title="{{ bubble.status.date|timesince }} ago"
  {% endif %}
  >
    {{ bubble.name }}
    {% if bubble.queue_position %}
    <span class="queue_position">#{{ bubble.queue_position }}</span>
    {% endif %}
  </a>
  {% endfor %}

{% if show_submit_to_ews %}
  <form name="submit_to_ews" method="POST" action="/submit-to-ews">
    <input type="hidden" name="attachment_id" value="{{ attachment_id }}">
    <input type="hidden" name="next_action" value="return_to_bubbles">
    <input class="status" type="submit" value="Submit for EWS analysis">
  </form>
{% endif %}
</div>
</body>
</html>