diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-01-26 14:34:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-01-26 14:34:47 +0000 |
commit | ac59f93b2228f5ff77ca7b7aff6fc3be54d360cd (patch) | |
tree | 3b6e7fb937526aeb05b11d14cfcff0b30e531e73 /templates/web/base/errors | |
parent | 251a0e77a25e5efb45aedca27a141f006dbddbde (diff) |
Improve some error pages.
Use design of auth/token in generic error, 404, and token server error
pages, and use the same error for too old/ token not found errors.
Diffstat (limited to 'templates/web/base/errors')
-rwxr-xr-x | templates/web/base/errors/generic.html | 9 | ||||
-rw-r--r-- | templates/web/base/errors/page_error_404_not_found.html | 20 |
2 files changed, 12 insertions, 17 deletions
diff --git a/templates/web/base/errors/generic.html b/templates/web/base/errors/generic.html index 12aa8e170..d0d1e2e00 100755 --- a/templates/web/base/errors/generic.html +++ b/templates/web/base/errors/generic.html @@ -1,8 +1,9 @@ -[% INCLUDE 'header.html', title = loc('Error') %] +[% INCLUDE 'header.html', bodyclass = 'fullwidthpage', title = loc('Error') %] -<h1>[% loc('Error') %]</h1> - -<p>[% message %]</p> +<div class="confirmation-header confirmation-header--failure"> + <h1>[% loc('Error') %]</h1> + <p>[% message %]</p> +</div> [% INCLUDE 'footer.html' %] diff --git a/templates/web/base/errors/page_error_404_not_found.html b/templates/web/base/errors/page_error_404_not_found.html index 77db18e89..490c5b721 100644 --- a/templates/web/base/errors/page_error_404_not_found.html +++ b/templates/web/base/errors/page_error_404_not_found.html @@ -1,19 +1,13 @@ -[% INCLUDE 'header.html', title => loc('Page Not Found') %] +[% INCLUDE 'header.html', bodyclass = 'fullwidthpage', title = loc('Page Not Found') %] -<h1>[%loc('Page Not Found') %]</h1> - -[% IF error_msg %] +<div class="confirmation-header confirmation-header--failure"> + <h1>[% loc('Page Not Found') %]</h1> + [% IF error_msg %] <p class="error">[% error_msg | html %]</p> -[% END %] + [% END %] -<p> - [% - tprintf( - loc("The requested URL '%s' was not found on this server"), - c.req.uri - ) - %] -</p> + <p>[% tprintf(loc("The requested URL '%s' was not found on this server"), c.req.uri) %]</p> +</div> [% # FIXME - add more helpful suggestions to this page %] |