mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Bookshelf reloaded (#25)
* Navbar refactoring * Fix coming soon SVG fonts * Overhaul templating and extend search to consists and books
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user