mirror of https://github.com/logos-co/open-law.git
rename books->book
This commit is contained in:
parent
59c1bed020
commit
9f4c3d938d
|
@ -75,7 +75,7 @@
|
|||
<!-- prettier-ignore -->
|
||||
{% include 'sidebar.html' %}
|
||||
{% include 'right_sidebar.html' %}
|
||||
{% include 'books/add_book_modal.html' %}
|
||||
{% include 'book/add_book_modal.html' %}
|
||||
|
||||
<div class="sm:mx-64 p-0 mt-16 h-full overflow-x-scroll">
|
||||
<!-- Main Content -->
|
||||
|
|
|
@ -26,7 +26,7 @@ def get_all():
|
|||
pagination = create_pagination(total=books.count())
|
||||
|
||||
return render_template(
|
||||
"books/index.html",
|
||||
"book/index.html",
|
||||
books=books.paginate(page=pagination.page, per_page=pagination.per_page),
|
||||
page=pagination,
|
||||
search_query=q,
|
||||
|
@ -56,4 +56,4 @@ def view(book_id):
|
|||
flash("Book not found", "danger")
|
||||
return redirect(url_for("book.get_all"))
|
||||
else:
|
||||
return render_template("books/view.html", book=b)
|
||||
return render_template("book/view.html", book=b)
|
||||
|
|
Loading…
Reference in New Issue