From 82b0405ab75ca5bd0cdcbb041b41092d4b26fa64 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 8 Apr 2022 10:46:59 +0100 Subject: [PATCH] Add missing templates --- templates/flash_msg.html | 12 ++++++++++++ templates/show_error.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 templates/flash_msg.html create mode 100644 templates/show_error.html diff --git a/templates/flash_msg.html b/templates/flash_msg.html new file mode 100644 index 0000000..76038fa --- /dev/null +++ b/templates/flash_msg.html @@ -0,0 +1,12 @@ +{% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} +{% endwith %} diff --git a/templates/show_error.html b/templates/show_error.html new file mode 100644 index 0000000..13447e7 --- /dev/null +++ b/templates/show_error.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block style %} + +{% endblock %} + +{% block content %} + +
+
+
+ +

Software error: {{ tb.exception_type }}

+
+
{{ tb.exception }}
+
+ +{% set body %} +URL: {{ request.url }} + +{{ tb.plaintext | safe }} +{% endset %} + +

Submit as an issue on GitHub (requires an account with GitHub)

+ +

Traceback (most recent call last)

+{{ tb.render_summary(include_title=False) | safe }} + +

Error in function "{{ tb.frames[-1].function_name }}": {{ last_frame_args | pprint }}

+
{{ last_frame.locals | pprint }}
+ +
+
+
+ +{% endblock %}