summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-05-09 13:14:59 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-05-09 16:02:55 +0000
commitf2ea06f8a0b0d9ba20756c169373d6db8569e370 (patch)
tree073057acce5cbf3fe4e64e3f5026b15ae6a82455 /templates
parent4eedfa7ea6a0d7ef5bef6122d2546eb2ce2411b9 (diff)
downloadlorry-controller-f2ea06f8a0b0d9ba20756c169373d6db8569e370.tar.gz
Render static HTML page without linksbaserock/liw/lc-static-html-without-links
The links won't work, so there's no point in having them.
Diffstat (limited to 'templates')
-rw-r--r--templates/status.tpl15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/status.tpl b/templates/status.tpl
index eef9e95..9201f04 100644
--- a/templates/status.tpl
+++ b/templates/status.tpl
@@ -65,17 +65,26 @@
</tr>
% for spec in run_queue:
% if spec['running_job'] is not None:
+% if links:
<tr>
<td><a href="/1.0/job-html/{{spec['running_job']}}">{{spec['running_job']}}</a></td>
<td><a href="/1.0/lorry-html/{{spec['path']}}">{{spec['path']}}</a></td>
</tr>
+% else:
+<tr>
+<td>{{spec['running_job']}}</td>
+<td>{{spec['path']}}</td>
+</tr>
+% end
% end
% end
</table>
% end
+% if links:
<p>See separate list of <a href="/1.0/list-jobs-html">all jobs that
have ever been started</a>.</p>
+% end
<h2>Run-queue</h2>
@@ -93,10 +102,14 @@
% fields = obj[name]
<tr>
<td>{{i+1}}</td>
+% if links:
<td><a href="/1.0/lorry-html/{{spec['path']}}">{{spec['path']}}</a></td>
+% else:
+<td>{{spec['path']}}</td>
+% end
<td>{{spec['interval_nice']}}</td>
<td>{{spec['due_nice']}}</td>
-% if spec['running_job']:
+% if spec['running_job'] and links:
<td><a href="/1.0/job-html/{{spec['running_job']}}">{{spec['running_job']}}</a></td>
% else:
<td></td>