Remove redundant "Go to page" input from pagination
Page numbers are clickable, making the input unnecessary clutter. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cb9625d613
commit
706accc008
|
|
@ -123,16 +123,6 @@
|
||||||
<a href="?page={{ meta.page + 1 }}" class="px-3 py-1 border rounded text-sm hover:bg-gray-100">Next</a>
|
<a href="?page={{ meta.page + 1 }}" class="px-3 py-1 border rounded text-sm hover:bg-gray-100">Next</a>
|
||||||
<a href="?page={{ meta.total_pages }}" class="px-2 py-1 border rounded text-sm hover:bg-gray-100" title="Last page">»</a>
|
<a href="?page={{ meta.total_pages }}" class="px-2 py-1 border rounded text-sm hover:bg-gray-100" title="Last page">»</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Jump to page -->
|
|
||||||
<span class="text-gray-400 mx-2">|</span>
|
|
||||||
<form class="flex items-center space-x-1" onsubmit="jumpToPage(event)">
|
|
||||||
<label class="text-sm text-gray-600">Go to:</label>
|
|
||||||
<input type="number" id="page-input" min="1" max="{{ meta.total_pages }}"
|
|
||||||
class="w-16 px-2 py-1 border rounded text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500"
|
|
||||||
placeholder="{{ meta.page }}">
|
|
||||||
<button type="submit" class="px-2 py-1 bg-indigo-600 text-white rounded text-sm hover:bg-indigo-700">Go</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -169,18 +159,6 @@ function toggleFindings(toolId) {
|
||||||
el.classList.toggle('hidden');
|
el.classList.toggle('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
function jumpToPage(event) {
|
|
||||||
event.preventDefault();
|
|
||||||
const input = document.getElementById('page-input');
|
|
||||||
const page = parseInt(input.value);
|
|
||||||
const maxPage = parseInt(input.max);
|
|
||||||
if (page && page >= 1 && page <= maxPage) {
|
|
||||||
window.location.href = `?page=${page}`;
|
|
||||||
} else if (page) {
|
|
||||||
alert(`Please enter a page number between 1 and ${maxPage}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function approveTool(toolId) {
|
async function approveTool(toolId) {
|
||||||
if (!confirm('Approve this tool?')) return;
|
if (!confirm('Approve this tool?')) return;
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue