From 586ecc5d6922267e8dcc2812bbdfc7f2d49bbd3a Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Sun, 1 Jun 2025 22:26:20 -0700 Subject: [PATCH] Remove pagination from the node's page --- meshview/templates/nodelist.html | 39 ++++---------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/meshview/templates/nodelist.html b/meshview/templates/nodelist.html index 8132204..98a258c 100644 --- a/meshview/templates/nodelist.html +++ b/meshview/templates/nodelist.html @@ -67,32 +67,6 @@ tr:nth-child(odd) { margin-left: auto; margin-right: auto; } - -.pagination { - display: flex; - justify-content: center; - margin-top: 1em; - gap: 6px; -} - -.pagination li { - list-style: none; -} - -.pagination li a { - color: white; - background-color: #333; - padding: 6px 12px; - text-decoration: none; - border-radius: 4px; - border: 1px solid #555; - font-size: 14px; -} - -.pagination li.active a { - background-color: #007bff; - border-color: #007bff; -} {% endblock %} {% block body %} @@ -163,9 +137,6 @@ tr:nth-child(odd) { {% endfor %} - - - {% else %}

No nodes found.

{% endif %} @@ -180,11 +151,7 @@ tr:nth-child(odd) { valueNames: [ "long_name", "short_name", "hw_model", "firmware", "role", "last_lat", "last_long", "channel", { name: "last_update", attr: "data-timestamp" } - ], - page: 50, - pagination: { - paginationClass: "pagination" - } + ] }; nodeList = new List("node-list", options); @@ -230,7 +197,9 @@ tr:nth-child(odd) { var cells = row.querySelectorAll("td"); if (cells.length > 0) { var rowData = []; - cells.forEach(cell => rowData.push(cell.innerText)); + cells.forEach(cell => { + rowData.push('"' + cell.innerText.replace(/"/g, '""') + '"'); + }); csvContent.push(rowData.join(",")); } }