package templates
import (
"fmt"
"malago/internal/database"
)
templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentStatus string) {
@Layout("My Watchlist") {
if len(entries) == 0 {
} else {
if layout == "grid" {
for _, entry := range entries {
}
} else {
| Image |
Title |
Status |
|
for _, entry := range entries {
|
{ entry.Title }
|
{ entry.Status } |
|
}
}
}
}
}
func viewLinkStyle(active bool) string {
if active {
return "color: var(--text); font-weight: bold; text-decoration: none;"
}
return "color: var(--text-muted); text-decoration: none;"
}
func tabLinkStyle(active bool) string {
if active {
return "color: var(--text); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--text); padding-bottom: 7px;"
}
return "color: var(--text-muted); text-decoration: none; padding-bottom: 7px;"
}