From: Michael Tremer Date: Wed, 19 Oct 2022 02:39:54 +0000 (+0000) Subject: web: Refactor the error page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b30056b11ce09616ca0e66bb7e3f88d31a9ce39;p=pbs.git web: Refactor the error page Signed-off-by: Michael Tremer --- diff --git a/src/templates/errors/error.html b/src/templates/errors/error.html index ab90f74b..726c47eb 100644 --- a/src/templates/errors/error.html +++ b/src/templates/errors/error.html @@ -1,55 +1,26 @@ {% extends "../base.html" %} {% block body %} -
- {% block bigbox %} -

- {% block bigbox_headline %} - {{ _("Oops! Don't panic.") }} - {% end block %} -
- - {% block bigbox_subtitle %} - {{ _("An unexpected error happened.") }} - {% end block %} -

- - {% block explanation %} -

- {{ _("Stay calm and read the text below to find out what went wrong.") }} +

+
+
+

+ {{ _("Oops, something is not right...") }}

- {% end block %} - {% end block %} -
- - {% block message %} -
-
- - - - - - - - {% if current_user and current_user.is_admin() and tb %} - - - - {% end %} - -
{{ _("Error code") }}{{ status_code }} - {{ status_message }}
- {{ _("Exception (traceback):") }} -

-
{{ "".join(tb) }}
-
- -
-

- {{ _("Please try going back to the previous page and try the action you did again in a moment.") }} - {{ _("If the error persists, you should consider to get in touch with an administrator.") }} +

+ {{ status_code }} - {{ status_message }}

- {% end block %} +
+ + {% if current_user and current_user.is_admin() and tb %} +
+
+

{{ _("Exception (Traceback):") }}

+ +
{{ "".join(tb) }}
+
+
+ {% end %} {% end %}