From 3a0e04dda97e5431c6fcdd3fecb7bca49e4e2f65 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Mon, 25 May 2026 17:59:22 +0200 Subject: [PATCH] feat: add studio filter UI and studio links on anime page --- templates/anime.gohtml | 4 +- templates/browse.gohtml | 26 ++++++++- templates/components/filter_bar.gohtml | 81 ++++++++++++++++++-------- 3 files changed, 84 insertions(+), 27 deletions(-) diff --git a/templates/anime.gohtml b/templates/anime.gohtml index 2c2793c..04bd87f 100644 --- a/templates/anime.gohtml +++ b/templates/anime.gohtml @@ -171,7 +171,9 @@ {{if $anime.Studios}}
Studios
-
{{range $i, $s := $anime.Studios}}{{if $i}}, {{end}}{{$s.Name}}{{end}}
+
+ {{range $i, $s := $anime.Studios}}{{if $i}}, {{end}}{{$s.Name}}{{end}} +
{{end}} {{if $anime.Producers}} diff --git a/templates/browse.gohtml b/templates/browse.gohtml index b35ebfa..c605aa6 100644 --- a/templates/browse.gohtml +++ b/templates/browse.gohtml @@ -45,8 +45,32 @@ {{end}} {{end}} +{{define "studio_dropdown_items"}} + {{if eq .Page 1}} + + {{end}} + {{range .StudioItems}} + + {{end}} + {{if and (eq (len .StudioItems) 0) (not .HasNextPage)}} +
No studios found.
+ {{end}} + {{if .HasNextPage}} +
+ {{end}} +{{end}} + {{define "browse_sentinel"}} -
- +
+ +
+ {{if .Type}}{{end}} {{if .Status}}{{end}} {{if .OrderBy}}{{end}} @@ -21,8 +24,35 @@
+ +
+ +
+ +
+
+ {{if .Studio}}{{end}} {{if .Type}}{{end}} {{if .Status}}{{end}} {{if .OrderBy}}{{end}} @@ -48,6 +78,7 @@ @@ -94,12 +125,12 @@
@@ -114,17 +145,17 @@ - + {{if eq .Sort "asc"}} {{else}}