Add basic sorting to management interface

This commit is contained in:
2022-06-07 16:25:45 +09:30
parent 42fd1973b8
commit 6cf327226d
4 changed files with 21 additions and 7 deletions

View File

@@ -2,10 +2,10 @@
<table id="manage-results">
<tr>
<th>&nbsp;</th>
<th>title/url</th>
<th hx-post="/manage/results?sort=title" hx-target="#manage-results">title/url</th>
<th>tags</th>
<th class="show-for-large">created</th>
<th class="show-for-large">scraped</th>
<th hx-post="/manage/results?sort=created" hx-target="#manage-results" class="show-for-large">created</th>
<th hx-post="/manage/results?sort=scraped" hx-target="#manage-results" class="show-for-large">scraped</th>
</tr>
{{ range .bookmarks }}
<tr>