From 32d730178829ddb16b271bd9f3331b33b19ac19d Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 4 Jun 2026 11:28:34 +0200 Subject: [PATCH] feat: add loading fragment templates and optimize section triggers --- templates/anime.gohtml | 33 ++++++++++++++++++++++--- templates/components/watch_order.gohtml | 12 +++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/templates/anime.gohtml b/templates/anime.gohtml index 555a397..682fb8c 100644 --- a/templates/anime.gohtml +++ b/templates/anime.gohtml @@ -38,6 +38,26 @@ {{end}} {{end}} +{{define "anime_recommendations_loading"}} +
+
+

Recommendations

+
+ {{range (seq 8)}} +
+
+
+
+ {{end}} +
+
+
+{{end}} + {{define "anime_statistics"}} {{if .Items}}
@@ -296,7 +316,7 @@
-
+

Characters & Cast

@@ -314,7 +334,10 @@
-
+
Loading watch order sequence... @@ -322,7 +345,11 @@
-
+

Recommendations

diff --git a/templates/components/watch_order.gohtml b/templates/components/watch_order.gohtml index 3141f0c..551f736 100644 --- a/templates/components/watch_order.gohtml +++ b/templates/components/watch_order.gohtml @@ -18,3 +18,15 @@
{{end}} + +{{define "watch_order_loading"}} +
+
+
+ Loading watch order sequence... +
+
+{{end}}