From 34bae843250f19787db011d822e7d802b26d2db9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 16 Sep 2015 13:57:53 +0200 Subject: [PATCH] Fix css URL. --- app.py | 4 ++-- templates/index.html | 2 +- templates/output.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index a2cd8de..d3490cd 100755 --- a/app.py +++ b/app.py @@ -67,7 +67,7 @@ def launch(): sys.stdout = sys.__stdout__ sys.stderr = sys.__stderr__ - return render_template('output.html', result = out[0].getvalue(), stderr = out[1].getvalue(), error = error) + return render_template('output.html', result=out[0].getvalue(), stderr=out[1].getvalue(), error=error, css_url=url_for('static', filename='style.css')) form = SubmitForm() @@ -76,7 +76,7 @@ def launch(): form.tests.choices = [(t, t) for t in tests_all] form.tests.data = [(t) for t in tests_default] - return render_template('index.html', form = form) + return render_template('index.html', form=form, css_url=url_for('static', filename='style.css')) if __name__ == '__main__': diff --git a/templates/index.html b/templates/index.html index 9f0424e..ce7a41e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ OCCI Compliance Tests - +