From fecd87b19b6382e44852e7755868525f580d0005 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 22:54:22 -0400 Subject: [PATCH] Tweak error page and status message. --- app/routes.py | 3 ++- app/templates/error.jinja2 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 331d46b..ff9e551 100644 --- a/app/routes.py +++ b/app/routes.py @@ -281,9 +281,10 @@ def git_update() -> None: @writing_blueprint.route('/status', methods=['GET']) def status_page() -> Response: - status_message = f'Currently running on {os.environ.get("UNDERCOVER_SERVER_NAME")} server' + status_message = f"Currently running on '{os.environ.get('UNDERCOVER_SERVER_NAME')}' server" return make_response(render_template('error.jinja2', status=200, error_text=status_message), 200) + @writing_blueprint.route('/', methods=['POST']) def generate_pdf() -> Response: email_address = session.get('username') diff --git a/app/templates/error.jinja2 b/app/templates/error.jinja2 index 5f6b276..5474251 100644 --- a/app/templates/error.jinja2 +++ b/app/templates/error.jinja2 @@ -4,7 +4,7 @@ {% block title %}UnderCover - {{ status }}{% endblock %} {% block content %} -

{{ error_text }}

+

{{ error_text }}

{% if extra_text %}

{{ extra_text }}

{% endif %}