Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 79280135a1 | |||
| 4422f3840e |
@@ -8,7 +8,7 @@ import (
|
||||
"golang.org/x/mod/semver"
|
||||
)
|
||||
|
||||
const Tag = "v0.0.23"
|
||||
const Tag = "v0.0.24"
|
||||
|
||||
var versionInfo struct {
|
||||
Local struct {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
|
||||
<th hx-post="/manage/results?sort={{ .URLString }}" hx-target="#manage-results">{{ .Name }} {{ .TitleArrow }}
|
||||
<th class="{{ .Class }}" hx-post="/manage/results?sort={{ .URLString }}" hx-target="#manage-results">{{ .Name }} {{ .TitleArrow }}
|
||||
</th>
|
||||
|
||||
@@ -46,6 +46,7 @@ type ColumnInfo struct {
|
||||
Name string
|
||||
Param string
|
||||
Sorted string
|
||||
Class string
|
||||
}
|
||||
|
||||
func (c ColumnInfo) URLString() string {
|
||||
@@ -123,8 +124,8 @@ func Create(bmm *db.BookmarkManager, cmm *db.ConfigManager) *Server {
|
||||
meta := gin.H{"config": config, "bookmarks": allBookmarks}
|
||||
|
||||
colTitle := &ColumnInfo{Name: "Title/URL", Param: "title"}
|
||||
colCreated := &ColumnInfo{Name: "Created", Param: "created"}
|
||||
colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped"}
|
||||
colCreated := &ColumnInfo{Name: "Created", Param: "created", Class: "show-for-large"}
|
||||
colScraped := &ColumnInfo{Name: "Scraped", Param: "scraped", Class: "show-for-large"}
|
||||
if sort == "title" {
|
||||
colTitle.Sorted = "asc"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user