From a4b499fd397d05f4ba6ce4bdddb31cd0eb09b8b9 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 11 Jan 2024 18:47:30 -0800 Subject: [PATCH] Added "Last" page to paginated sections in Dashboard -Added "Last" page to paginated sections in Dashboard --- cmd/dashboard/dashboard/templates.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dashboard/dashboard/templates.py b/cmd/dashboard/dashboard/templates.py index 2977a2e..b20e324 100644 --- a/cmd/dashboard/dashboard/templates.py +++ b/cmd/dashboard/dashboard/templates.py @@ -76,6 +76,8 @@ def text_pagination(total_pages: int, search: str, current_page: int, current_ta if current_page != total_pages: hrefs.append(f'Next>') + hrefs.append(f'Last>>') + return "
" + " ".join(hrefs) + "
" @@ -105,6 +107,7 @@ def file_pagination(total_pages: int, current_page: int, search_params: dict) -> hrefs.append(f'Next>') hrefs.insert(0, f'Current Page Link') + hrefs.append(f'Last>>') return "
" + " ".join(hrefs) + "
" @@ -132,6 +135,8 @@ def np_pagination(total_pages: int, current_page: int) -> str: if current_page != total_pages: hrefs.append(f'Next>') + hrefs.append(f'Last>>') + return "
" + " ".join(hrefs) + "
"