summaryrefslogtreecommitdiff
path: root/kbas
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-06-30 18:53:01 +0100
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-06-30 19:04:10 +0100
commiteb23f0d1d655c9084ef4cbd2554b73d2b06cdf36 (patch)
tree69407569a4892c5a6c9d8e5d7652653327cfa3c0 /kbas
parentcbaeb020f43b628d5258f91b7e87548204cb865b (diff)
downloadybd-eb23f0d1d655c9084ef4cbd2554b73d2b06cdf36.tar.gz
Provide download links for artifacts
Diffstat (limited to 'kbas')
-rwxr-xr-xkbas/__main__.py10
-rw-r--r--kbas/public/style.css4
2 files changed, 8 insertions, 6 deletions
diff --git a/kbas/__main__.py b/kbas/__main__.py
index c20f9b5..a91e2bc 100755
--- a/kbas/__main__.py
+++ b/kbas/__main__.py
@@ -100,12 +100,12 @@ class KeyedBinaryArtifactServer(object):
artifacts = len(os.listdir(app.config['artifact-dir']))
started = app.config['start-time'].strftime('%y-%m-%d %H:%M:%S')
last_upload = app.config['last-upload'].strftime('%y-%m-%d %H:%M:%S')
- content = [['Started:', started]]
- content += [['Last upload:', last_upload]]
+ content = [['Started:', started, None]]
+ content += [['Last upload:', last_upload, None]]
if app.config.get('last-reject'):
- content += [['Last reject:', app.config['last-reject']]]
- content += [['Space:', str(free) + 'GB']]
- content += [['Artifacts:', str(artifacts)]]
+ content += [['Last reject:', app.config['last-reject', None]]]
+ content += [['Space:', str(free) + 'GB', None]]
+ content += [['Artifacts:', str(artifacts), None]]
return template('kbas',
title='KBAS status',
content=content,
diff --git a/kbas/public/style.css b/kbas/public/style.css
index 5dd869d..76e276c 100644
--- a/kbas/public/style.css
+++ b/kbas/public/style.css
@@ -18,4 +18,6 @@ p {
table {
font-size: 10pt;
-} \ No newline at end of file
+}
+
+:link, :visited, :active { color: #9ff; } \ No newline at end of file