Fixes error pages

This commit is contained in:
Mouse Reeve 2021-03-29 18:47:21 -07:00
parent e86f160c53
commit 28f07f7729
5 changed files with 2 additions and 16 deletions

View file

@ -44,9 +44,9 @@
<div class="card block">
<div class="card-content">
<div class="media">
<span class="media-left">
<a href="{{ user.local_path }}" class="media-left">
{% include 'snippets/avatar.html' with user=user large=True %}
</span>
</a>
<div class="media-content">
<a href="{{ user.local_path }}" class="is-block mb-2">
<span class="title is-4 is-block">{{ user.display_name }}</span>

View file

@ -23,8 +23,6 @@ status_path = r"%s/(%s)/(?P<status_id>\d+)" % (user_path, "|".join(status_types)
book_path = r"^book/(?P<book_id>\d+)"
handler404 = "bookwyrm.views.not_found_page"
handler500 = "bookwyrm.views.server_error_page"
urlpatterns = [
path("admin/", admin.site.urls),
path(

View file

@ -1,12 +0,0 @@
""" something has gone amiss """
from django.template.response import TemplateResponse
def server_error_page(request):
""" 500 errors """
return TemplateResponse(request, "error.html", status=500)
def not_found_page(request, _):
""" 404s """
return TemplateResponse(request, "notfound.html", status=404)