blob: 7c475e04d784c356817e194d19913421dbadcf6f (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<!DOCTYPE HTML>
<html>
<head>
<title>Lorry {{lorry['path']}}</title>
<link rel="stylesheet" href="/lc-static/style.css" type="text/css" />
</head>
<body>
% import json
<h1>Lorry {{lorry['path']}}</h1>
<table>
<tr> <th>Path</th>
<td><a href="{{http_server_root}}/cgi-bin/cgit.cgi/{{lorry['path']}}.git/">{{lorry['path']}}</a></td> </tr>
<tr> <th>URL</th> <td>{{lorry['url']}}</td> </tr>
<tr> <th>Interval</th> <td>{{lorry['interval_nice']}} ({{lorry['interval']}} s)</td> </tr>
<tr> <th>Last run</th> <td>{{lorry['last_run_nice']}}</td> </tr>
<tr> <th>Due</th> <td>{{lorry['due_nice']}}</td> </tr>
<tr> <th>From Trove</th> <td>{{lorry['from_trovehost']}}</td> </tr>
<tr> <th>Disk usage</th> <td>{{lorry['disk_usage_nice']}}</td> </tr>
<tr> <th>Job?</th>
% if lorry['running_job']:
<td><a href="/1.0/job/{{lorry['running_job']}}">{{lorry['running_job']}}</a></td>
% else:
<td></td>
% end
</tr>
</table>
<h2>Full Lorry text</h2>
<blockquote>
<pre>{{lorry['text']}}</pre>
</blockquote>
<hr />
<p>Updated: {{timestamp}}</p>
<h2>Failed jobs for this Lorry</h2>
% if lorry['failed_jobs']:
<p>
% for job_id in lorry['failed_jobs']:
<a href="/1.0/job-html/{{job_id}}">{{job_id}}</a>
% end
</p>
% else:
<p>No failed jobs.</p>
% end
<h2>All jobs for this lorry</h2>
% if lorry['jobs']:
<p>
% for job_id in lorry['jobs']:
<a href="/1.0/job-html/{{job_id}}">{{job_id}}</a>
% end
</p>
% else:
<p>No jobs.</p>
% end
</body>
</html>
|