From: František Dvořák Date: Wed, 16 Sep 2015 11:57:53 +0000 (+0200) Subject: Fix css URL. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=34bae843250f19787db011d822e7d802b26d2db9;p=pOCCI-flask.git Fix css URL. --- 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 - +