Added back button for errors

Added a single href link to the error.html page in datasette/templates. allows users to go back without having to use the browser's back button. temporary fix.
pull/2314/head
Tyler McKenzie 2024-03-27 17:02:03 -04:00
rodzic 8a94129687
commit 8c683ad7dd
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1,11 +1,10 @@
{% extends "base.html" %}
{% block title %}{% if title %}{{ title }}{% else %}Error {{ status }}{% endif %}{% endblock %}
{% block content %}
<h1>{% if title %}{{ title }}{% else %}Error {{ status }}{% endif %}</h1>
<div style="padding: 1em; margin: 1em 0; border: 3px solid red;">{{ error }}</div>
<a href="javascript:window.history.back();">Return to Previous</a>
{% endblock %}