Add return link to error base template

This commit is contained in:
Christopher C. Wells 2022-02-23 05:48:15 -08:00 committed by Christopher Charbonneau Wells
parent ff45ab46a3
commit c2afa80845
2 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<h1>404 {% trans "Page Not Found" %}</h1> <h1>404 {% trans "Page Not Found" %}</h1>
<div> <div>
{% blocktrans trimmed with request_path=request_path %} {% blocktrans trimmed with request_path=request_path %}
The path <samp>{{ request_path }}</samp> does not exist. The path <code>{{ request_path }}</code> does not exist.
{% endblocktrans %} {% endblocktrans %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -8,8 +8,11 @@
<div class="row justify-content-md-center"> <div class="row justify-content-md-center">
<div class="col-lg-12 mb-4"> <div class="col-lg-12 mb-4">
<div class="d-sm-flex"> <div class="d-sm-flex">
<img class="d-inline-block align-self-center mr-2 text-center" src="{% static "babybuddy/logo/logo-sad.png" %}" width="65" height="65"> <img class="d-inline-block align-self-top mr-2 mt-2 text-center" src="{% static "babybuddy/logo/logo-sad.png" %}" width="65" height="65">
<div class="p-2 flex-grow-1">{% block content %}{% endblock %}</div> <div class="p-2 flex-grow-1">
{% block content %}{% endblock %}
<a href="{% url "babybuddy:root-router" %}" class="btn btn-outline-primary mt-3">{% trans "Return to Baby Buddy" %}</a>
</div>
</div> </div>
</div> </div>
</div> </div>