Show all WireGuard configs in admin without pagination.
This commit is contained in:
@@ -46,7 +46,9 @@
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h1 style="font-size:1.1rem;margin-bottom:1rem">Конфиги</h1>
|
||||
<h1 style="font-size:1.1rem;margin-bottom:0.35rem">Конфиги</h1>
|
||||
<p class="muted" style="margin-bottom:1rem">Всего: {{.Total}}</p>
|
||||
<div style="overflow-x:auto;max-height:70vh;overflow-y:auto">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr><th>ID</th><th>Токен</th><th>Файл</th><th>Дата</th><th>Ссылка</th><th></th></tr>
|
||||
@@ -71,10 +73,6 @@
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="pager">
|
||||
{{if gt .Page 1}}<a class="btn btn-ghost" href="/admin/wg?page={{sub .Page 1}}">←</a>{{end}}
|
||||
<span class="muted">стр. {{.Page}} / {{.TotalPages}}</span>
|
||||
{{if lt .Page .TotalPages}}<a class="btn btn-ghost" href="/admin/wg?page={{add .Page 1}}">→</a>{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user