Bookshelf reloaded (#25)

* Navbar refactoring
* Fix coming soon SVG fonts
* Overhaul templating and extend search to consists and books
This commit is contained in:
2023-10-05 23:13:42 +02:00
committed by GitHub
parent 2d48463474
commit 425eed3d83
25 changed files with 554 additions and 493 deletions

View File

@@ -18,7 +18,7 @@ from portal.views import (
)
urlpatterns = [
path("", GetData.as_view(), name="index"),
path("", GetData.as_view(template="home.html"), name="index"),
path("roster", GetRoster.as_view(), name="roster"),
path("roster/<int:page>", GetRoster.as_view(), name="roster_pagination"),
path(
@@ -36,28 +36,56 @@ urlpatterns = [
GetConsist.as_view(),
name="consist_pagination",
),
path("companies", Companies.as_view(), name="companies"),
path(
"companies",
Companies.as_view(template="companies.html"),
name="companies"
),
path(
"companies/<int:page>",
Companies.as_view(),
Companies.as_view(template="companies.html"),
name="companies_pagination",
),
path(
"manufacturers/<str:category>",
Manufacturers.as_view(),
Manufacturers.as_view(template="manufacturers.html"),
name="manufacturers"
),
path(
"manufacturers/<str:category>/<int:page>",
Manufacturers.as_view(),
Manufacturers.as_view(template="manufacturers.html"),
name="manufacturers_pagination",
),
path("scales", Scales.as_view(), name="scales"),
path("scales/<int:page>", Types.as_view(), name="scales_pagination"),
path("types", Types.as_view(), name="types"),
path("types/<int:page>", Types.as_view(), name="types_pagination"),
path("bookshelf/books", Books.as_view(), name="books"),
path("bookshelf/books/<int:page>", Books.as_view(), name="books_pagination"),
path(
"scales",
Scales.as_view(template="scales.html"),
name="scales"
),
path(
"scales/<int:page>",
Scales.as_view(template="scales.html"),
name="scales_pagination"
),
path(
"types",
Types.as_view(template="types.html"),
name="types"
),
path(
"types/<int:page>",
Types.as_view(template="types.html"),
name="types_pagination"
),
path(
"bookshelf/books",
Books.as_view(template="bookshelf/books.html"),
name="books"
),
path(
"bookshelf/books/<int:page>",
Books.as_view(template="bookshelf/books.html"),
name="books_pagination"
),
path("bookshelf/book/<uuid:uuid>", GetBook.as_view(), name="book"),
path(
"search",