refactor: remove table view from watchlist, keep only grid

This commit is contained in:
2026-04-21 01:41:11 +02:00
parent ebbc0c26f8
commit 4b29509127
4 changed files with 46 additions and 121 deletions

View File

@@ -3,7 +3,6 @@ package ui
type SortFilterOptions struct {
Sort string // "title", "date"
Order string // "asc", "desc"
View string // for watchlist: "grid", "table"
Status string // for watchlist: "all", "watching", etc
}
@@ -27,9 +26,6 @@ templ SortFilter(opts SortFilterOptions) {
<form id="sort-form" method="get" class="hidden">
<input type="hidden" name="sort" id="sort-input" value={ opts.Sort }/>
<input type="hidden" name="order" id="order-input" value={ opts.Order }/>
if opts.View != "" {
<input type="hidden" name="view" value={ opts.View }/>
}
if opts.Status != "" {
<input type="hidden" name="status" value={ opts.Status }/>
}