From f2ea06f8a0b0d9ba20756c169373d6db8569e370 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 9 May 2014 13:14:59 +0000 Subject: Render static HTML page without links The links won't work, so there's no point in having them. --- lorrycontroller/status.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lorrycontroller') 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) -- cgit v1.2.1