From a9bcda045a3829f5705da7646f9d587bd2aaf4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 14 Aug 2021 02:20:45 +0200 Subject: [PATCH] Add generic pagination tempalte --- shimatta_kenkyusho/templates/paginator.html | 25 +++++++ .../templates/parts/stocks-detail.html | 19 +----- .../templates/parts/stocks.html | 66 +++++-------------- 3 files changed, 42 insertions(+), 68 deletions(-) create mode 100644 shimatta_kenkyusho/templates/paginator.html diff --git a/shimatta_kenkyusho/templates/paginator.html b/shimatta_kenkyusho/templates/paginator.html new file mode 100644 index 0000000..34ad0c3 --- /dev/null +++ b/shimatta_kenkyusho/templates/paginator.html @@ -0,0 +1,25 @@ +{% if paginator.has_other_pages %} + +{% endif %} \ No newline at end of file diff --git a/shimatta_kenkyusho/templates/parts/stocks-detail.html b/shimatta_kenkyusho/templates/parts/stocks-detail.html index 5f55aab..3c32f97 100644 --- a/shimatta_kenkyusho/templates/parts/stocks-detail.html +++ b/shimatta_kenkyusho/templates/parts/stocks-detail.html @@ -35,24 +35,7 @@ {% endfor %} - + {% include 'paginator.html' with paginator=storages get_param='storage_page' aria_label='Storage Page Navigation' %} diff --git a/shimatta_kenkyusho/templates/parts/stocks.html b/shimatta_kenkyusho/templates/parts/stocks.html index dbb9f3d..1b25e63 100644 --- a/shimatta_kenkyusho/templates/parts/stocks.html +++ b/shimatta_kenkyusho/templates/parts/stocks.html @@ -31,58 +31,24 @@ {% endfor %} - + {% include 'paginator.html' with paginator=low_stocks get_param='low_stock_page' aria_label='Low Stock Page Navigation' %}
-

Storages

- - +

Storages

+ + {% include 'paginator.html' with paginator=storages get_param='storage_page' aria_label='Storage Page Navigation'%}