diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-05-09 13:14:59 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-05-09 16:02:55 +0000 |
commit | f2ea06f8a0b0d9ba20756c169373d6db8569e370 (patch) | |
tree | 073057acce5cbf3fe4e64e3f5026b15ae6a82455 /lorrycontroller | |
parent | 4eedfa7ea6a0d7ef5bef6122d2546eb2ce2411b9 (diff) | |
download | lorry-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 'lorrycontroller')
-rw-r--r-- | lorrycontroller/status.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lorrycontroller/status.py b/lorrycontroller/status.py index 5e011d5..b0a3807 100644 --- a/lorrycontroller/status.py +++ b/lorrycontroller/status.py @@ -37,6 +37,7 @@ class StatusRenderer(object): 'troves': self.get_troves(statedb), 'warning_msg': '', 'max_jobs': self.get_max_jobs(statedb), + 'links': True, } status.update(self.get_free_disk_space(work_directory)) return status @@ -45,7 +46,9 @@ class StatusRenderer(object): return bottle.template(template, **status) def write_status_as_html(self, template, status, filename): - html = self.render_status_as_html(template, status) + modified_status = dict(status) + modified_status['links'] = False + html = self.render_status_as_html(template, modified_status) try: with open(filename, 'w') as f: f.write(html) |