-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.html
154 lines (138 loc) · 3.96 KB
/
builder.html
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:,">
<title>WebKit Bots Dashboard - Builder info</title>
<style>
body {
font-size: 12px;
font-family: sans-serif;
}
table {
table-layout: fixed;
width: 100%;
border-collapse: collapse;
border: 3px solid gray;
}
thead {
text-align: center;
background-color: lightgrey;
font-weight: bold;
}
td > a {
color: black;
}
thead th:nth-child(1) {
width: 50px;
}
thead th:nth-child(2) {
width: 100px;
}
thead th:nth-child(3) {
width: 200px;
}
thead th:nth-child(4) {
width: 150px;
}
tbody tr:nth-child(odd) {
background-color: white;
}
tbody tr:nth-child(even) {
background-color: rgb(243, 243, 243);
}
tbody tr td:nth-child(1) {
text-align: center;
}
tbody tr td:nth-child(2) {
text-align: center;
}
.success {
border-radius: 5px;
background-color: lightgreen;
}
.failure {
border-radius: 5px;
/* FIXME: ugly background with default link color */
background-color: rgb(255, 100, 100);
font-weight: bold;
}
.building {
border-radius: 5px;
background-color: yellow;
}
@media only screen and (max-width: 1024px) {
table, thead, tbody, th, td, tr {
display: block;
}
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr { border: 1px solid #ccc; }
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
td:before {
/* Now like a table header */
position: absolute;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
text-align: left;
}
td:nth-of-type(1):before { content: "Job number"; }
td:nth-of-type(2):before { content: "Identifier"; }
td:nth-of-type(3):before { content: "Started"; }
td:nth-of-type(4):before { content: "Duration"; }
td:nth-of-type(5):before { content: "Status"; }
}
</style>
</head>
<body>
<script type="module" src="./builder.js"></script>
<div>
<h2>Details for builder <span id="builderTitle"></span></h2>
</div>
<section>
<ul>
<li>Builder Name: <span id="builderName"></span></li>
<li id="builderURL">Builder URL: </li>
</ul>
</section>
<section>
<table id="jobsList">
<thead>
<tr>
<th>Job number</th>
<th>Identifier</th>
<th>Started</th>
<th>Job duration</th>
<th>Status</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<template id="jobListEntry">
<tr>
<td class="jobNumber"></td>
<td class="jobIdentifier"></td>
<td class="jobStarted"></td>
<td class="jobDuration"></td>
<td class="jobStatus"></td>
</tr>
</template>
</section>
<br>
<footer><a href="./">Back to builder list</a></footer>
</body>
</html>