Missed a url

This commit is contained in:
Mouse Reeve 2021-03-31 09:54:52 -07:00
parent ab78da735f
commit e81de08e7f
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
{% extends 'user/user_layout.html' %}
{% load i18n %}
{% load bookwyrm_tags %}
{% block title %}{{ user.display_name }}{% endblock %}
@ -43,7 +44,7 @@
</div>
{% endfor %}
</div>
<small><a href="{{ user.local_path }}/shelves">{% trans "View all books" %}</a></small>
<small><a href="{% url 'user-shelves' user|username %}">{% trans "View all books" %}</a></small>
</div>
{% endif %}

View file

@ -161,7 +161,7 @@ urlpatterns = [
re_path(
r"^%s/(books|shelf)/(?P<shelf_identifier>[\w-]+)(.json)?/?$" % local_user_path,
views.Shelf.as_view(),
name="shelf"
name="shelf",
),
re_path(r"^create-shelf/?$", views.create_shelf, name="shelf-create"),
re_path(r"^delete-shelf/(?P<shelf_id>\d+)?$", views.delete_shelf),