Tweak error page and status message.

This commit is contained in:
Sage Vaillancourt 2022-10-02 22:54:22 -04:00
parent 2fb373ace0
commit fecd87b19b
2 changed files with 3 additions and 2 deletions

View File

@ -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')

View File

@ -4,7 +4,7 @@
{% block title %}UnderCover - {{ status }}{% endblock %}
{% block content %}
<h1>{{ error_text }}</h1>
<h1 style="line-height: 150%">{{ error_text }}</h1>
{% if extra_text %}
<h2>{{ extra_text }}</h2>
{% endif %}