aboutsummaryrefslogtreecommitdiffstats
path: root/templates/errors
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-29 22:39:07 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-29 22:39:07 +0100
commit430b5d23a82e81add12fce46a2e8e67ac6cfb7db (patch)
treea0cf9eb8f76cbe57e5da3ee5d35da79bb6bbbdea /templates/errors
parentFix error routing and more work on static files (diff)
More convenient static_file() function for templates
Diffstat (limited to 'templates/errors')
-rw-r--r--templates/errors/error.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/errors/error.html b/templates/errors/error.html
index 6aeaee02..366bd49e 100644
--- a/templates/errors/error.html
+++ b/templates/errors/error.html
@@ -5,7 +5,7 @@
{% block beta_error %}{% endblock %}
{% block extra_head %}
- <link href="{{ url_for('static', filename='css/window.css') }}" rel="stylesheet" type="text/css"/>
+ <link href="{{ static_file('css/window.css') }}" rel="stylesheet" type="text/css"/>
<script>
window._RequestMethod = "{{ request.method.lower() }}";
@@ -14,8 +14,8 @@
window._Path = "{{ request.path }}";
</script>
- <script src="{{ url_for('static', filename='js/typewriter.js') }}" type="application/javascript"></script>
- <script src="{{ url_for('static', filename='js/500.js') }}" type="application/javascript"></script>
+ <script src="{{ static_file('js/typewriter.js') }}" type="application/javascript"></script>
+ <script src="{{ static_file('js/500.js') }}" type="application/javascript"></script>
{% endblock %}
{% block content %}