summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBen Brown <ben@demerara.io>2021-11-18 18:27:35 +0000
committerBen Brown <ben@demerara.io>2021-11-18 18:27:46 +0000
commitcea2acf3b4e1c6fb4b4df60828459a40fc978367 (patch)
tree79030293e928dfd9796db1cb9ca8d25010238c3a /templates
parentb49d223bd8c2ba2bfd6ce97059fd67902e0e2a8d (diff)
downloadlorry-controller-cea2acf3b4e1c6fb4b4df60828459a40fc978367.tar.gz
Update admin interface to support raw-file
Diffstat (limited to 'templates')
-rw-r--r--templates/lorry.tpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/lorry.tpl b/templates/lorry.tpl
index 22760d4..b9b74fa 100644
--- a/templates/lorry.tpl
+++ b/templates/lorry.tpl
@@ -13,7 +13,17 @@
<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>
+ % if "url" in lorry:
+ <th>URL</th> <td>{{lorry['url']}}</td>
+ % elif "urls" in lorry:
+ <th>URLs</th> <td>
+ % for url in lorry['urls'].values():
+ {{url}}<BR>
+ % end
+ </td>
+ % end
+</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>