Better 404 (and 403) pages

Fixes #1819
This commit is contained in:
Joseph Schorr 2016-09-21 13:53:09 -04:00
parent 502fa23d31
commit 4d5c65e6d4
12 changed files with 131 additions and 24 deletions

View file

@ -1,13 +0,0 @@
{% extends "error.html" %}
{% block title %}
<title>Page Not Found · Quay</title>
{% endblock %}
{% block content %}
<h3>The page you're looking for doesn't exist!</h3>
<h4>
<p>This is somewhat embarrassing, isnt it? It looks like there's nothing here.</p>
<p>You probably want to return to the <a href="/">main page</a>.</p>
</h4>
{% endblock %}

View file

@ -40,6 +40,14 @@
window.__auth_scopes = {{ scope_set|safe }};
window.__vuln_priority = {{ vuln_priority_set|safe }}
window.__token = '{{ csrf_token() }}';
{% if error_code %}
window.__error_code = {{ error_code }};
{% endif %}
{% if error_info %}
window.__error_info = {{ error_info|safe }};
{% endif %}
</script>
{% for script_url in external_scripts %}