Updates references to templates

This commit is contained in:
Mouse Reeve 2021-09-28 16:04:08 -07:00
parent 9a4b71d585
commit d9945ac5e3
2 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% include 'user/shelf/books_header.html' %} {% include 'user/books_header.html' %}
{% endblock %} {% endblock %}
{% block opengraph_images %} {% block opengraph_images %}
@ -15,7 +15,7 @@
{% block content %} {% block content %}
<header class="block"> <header class="block">
<h1 class="title"> <h1 class="title">
{% include 'user/shelf/books_header.html' %} {% include 'user/books_header.html' %}
</h1> </h1>
</header> </header>
@ -60,7 +60,7 @@
</div> </div>
<div class="block"> <div class="block">
{% include 'user/shelf/create_shelf_form.html' with controls_text='create_shelf_form' %} {% include 'shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}
</div> </div>
<div class="block columns is-mobile"> <div class="block columns is-mobile">
@ -98,7 +98,7 @@
</div> </div>
<div class="block"> <div class="block">
{% include 'user/shelf/edit_shelf_form.html' with controls_text="edit_shelf_form" %} {% include 'shelf/edit_shelf_form.html' with controls_text="edit_shelf_form" %}
</div> </div>
<div class="block"> <div class="block">
@ -167,7 +167,7 @@
</tbody> </tbody>
</table> </table>
{% else %} {% else %}
<p>{% trans "This shelf is empty." %}</p> <p><em>{% trans "This shelf is empty." %}</em></p>
{% if shelf.id and shelf.editable %} {% if shelf.id and shelf.editable %}
<form name="delete-shelf" action="/delete-shelf/{{ shelf.id }}" method="post"> <form name="delete-shelf" action="/delete-shelf/{{ shelf.id }}" method="post">
{% csrf_token %} {% csrf_token %}

View file

@ -90,7 +90,7 @@ class Shelf(View):
), ),
} }
return TemplateResponse(request, "user/shelf/shelf.html", data) return TemplateResponse(request, "shelf/shelf.html", data)
@method_decorator(login_required, name="dispatch") @method_decorator(login_required, name="dispatch")
# pylint: disable=unused-argument # pylint: disable=unused-argument