mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-07-06 18:01:05 +02:00
Remove pagination from the node's page
This commit is contained in:
@@ -67,32 +67,6 @@ tr:nth-child(odd) {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: 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 %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
@@ -163,9 +137,6 @@ tr:nth-child(odd) {
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Pagination Controls -->
|
|
||||||
<div class="pagination"></div>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No nodes found.</p>
|
<p>No nodes found.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -180,11 +151,7 @@ tr:nth-child(odd) {
|
|||||||
valueNames: [
|
valueNames: [
|
||||||
"long_name", "short_name", "hw_model", "firmware", "role",
|
"long_name", "short_name", "hw_model", "firmware", "role",
|
||||||
"last_lat", "last_long", "channel", { name: "last_update", attr: "data-timestamp" }
|
"last_lat", "last_long", "channel", { name: "last_update", attr: "data-timestamp" }
|
||||||
],
|
]
|
||||||
page: 50,
|
|
||||||
pagination: {
|
|
||||||
paginationClass: "pagination"
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nodeList = new List("node-list", options);
|
nodeList = new List("node-list", options);
|
||||||
@@ -230,7 +197,9 @@ tr:nth-child(odd) {
|
|||||||
var cells = row.querySelectorAll("td");
|
var cells = row.querySelectorAll("td");
|
||||||
if (cells.length > 0) {
|
if (cells.length > 0) {
|
||||||
var rowData = [];
|
var rowData = [];
|
||||||
cells.forEach(cell => rowData.push(cell.innerText));
|
cells.forEach(cell => {
|
||||||
|
rowData.push('"' + cell.innerText.replace(/"/g, '""') + '"');
|
||||||
|
});
|
||||||
csvContent.push(rowData.join(","));
|
csvContent.push(rowData.join(","));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user