Tweak error page and status message.
This commit is contained in:
parent
2fb373ace0
commit
fecd87b19b
|
@ -281,9 +281,10 @@ def git_update() -> None:
|
||||||
|
|
||||||
@writing_blueprint.route('/status', methods=['GET'])
|
@writing_blueprint.route('/status', methods=['GET'])
|
||||||
def status_page() -> Response:
|
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)
|
return make_response(render_template('error.jinja2', status=200, error_text=status_message), 200)
|
||||||
|
|
||||||
|
|
||||||
@writing_blueprint.route('/', methods=['POST'])
|
@writing_blueprint.route('/', methods=['POST'])
|
||||||
def generate_pdf() -> Response:
|
def generate_pdf() -> Response:
|
||||||
email_address = session.get('username')
|
email_address = session.get('username')
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% block title %}UnderCover - {{ status }}{% endblock %}
|
{% block title %}UnderCover - {{ status }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ error_text }}</h1>
|
<h1 style="line-height: 150%">{{ error_text }}</h1>
|
||||||
{% if extra_text %}
|
{% if extra_text %}
|
||||||
<h2>{{ extra_text }}</h2>
|
<h2>{{ extra_text }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue