Add reversible column sorting, with sort direction indicators

This commit is contained in:
2022-06-07 19:51:56 +09:30
parent eed41aebbb
commit a910aac946
4 changed files with 73 additions and 9 deletions

View File

@@ -2,10 +2,10 @@
<table id="manage-results">
<tr>
<th>&nbsp;</th>
<th hx-post="/manage/results?sort=title" hx-target="#manage-results">title/url</th>
{{ template "manage_results_column_header.html" .column.title }}
<th>tags</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>
{{ template "manage_results_column_header.html" .column.created }}
{{ template "manage_results_column_header.html" .column.scraped }}
</tr>
{{ range .bookmarks }}
<tr>