From 425eed3d83301f7850aee31e989c21e738a76c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Thu, 5 Oct 2023 23:13:42 +0200 Subject: [PATCH] Bookshelf reloaded (#25) * Navbar refactoring * Fix coming soon SVG fonts * Overhaul templating and extend search to consists and books --- ram/portal/static/coming_soon.svg | 4 +- ram/portal/templates/base.html | 2 +- ram/portal/templates/bookshelf/book.html | 12 +- ram/portal/templates/bookshelf/books.html | 64 ------- .../templates/bookshelf/bookshelf_menu.html | 2 +- ram/portal/templates/cards.html | 108 ++---------- ram/portal/templates/cards/book.html | 60 +++++++ ram/portal/templates/cards/company.html | 46 +++++ ram/portal/templates/cards/consist.html | 59 +++++++ ram/portal/templates/cards/manufacturer.html | 39 +++++ ram/portal/templates/cards/rolling_stock.html | 92 ++++++++++ .../templates/cards/rolling_stock_type.html | 29 ++++ ram/portal/templates/cards/scale.html | 36 ++++ ram/portal/templates/companies.html | 51 ------ ram/portal/templates/consist.html | 12 +- ram/portal/templates/consists.html | 64 ------- ram/portal/templates/filter.html | 1 - ram/portal/templates/manufacturers.html | 45 +---- ram/portal/templates/rollingstock.html | 32 ++-- ram/portal/templates/scales.html | 41 ----- ram/portal/templates/types.html | 33 ---- ram/portal/urls.py | 50 ++++-- ram/portal/views.py | 159 ++++++++++++------ ram/ram/__init__.py | 2 +- ram/ram/admin.py | 4 +- 25 files changed, 554 insertions(+), 493 deletions(-) create mode 100644 ram/portal/templates/cards/book.html create mode 100644 ram/portal/templates/cards/company.html create mode 100644 ram/portal/templates/cards/consist.html create mode 100644 ram/portal/templates/cards/manufacturer.html create mode 100644 ram/portal/templates/cards/rolling_stock.html create mode 100644 ram/portal/templates/cards/rolling_stock_type.html create mode 100644 ram/portal/templates/cards/scale.html diff --git a/ram/portal/static/coming_soon.svg b/ram/portal/static/coming_soon.svg index 1d0f58d..c20a612 100644 --- a/ram/portal/static/coming_soon.svg +++ b/ram/portal/static/coming_soon.svg @@ -46,12 +46,12 @@ transform="rotate(-90)" /> Coming soon diff --git a/ram/portal/templates/base.html b/ram/portal/templates/base.html index dfb0d26..c27b811 100644 --- a/ram/portal/templates/base.html +++ b/ram/portal/templates/base.html @@ -171,8 +171,8 @@
  • Real
  • - {% show_flatpages_menu %} {% show_bookshelf_menu %} + {% show_flatpages_menu %} {% include 'includes/search.html' %} diff --git a/ram/portal/templates/bookshelf/book.html b/ram/portal/templates/bookshelf/book.html index 5731e69..72fde7f 100644 --- a/ram/portal/templates/bookshelf/book.html +++ b/ram/portal/templates/bookshelf/book.html @@ -43,14 +43,12 @@
    -