diff --git a/internal/templates/anime.templ b/internal/templates/anime.templ index ae23d65..319210e 100644 --- a/internal/templates/anime.templ +++ b/internal/templates/anime.templ @@ -48,20 +48,26 @@ templ AnimeDetails(anime jikan.Anime, currentStatus string) {

no synopsis available.

} -
-
-
-
-
- loading relations +
+

related

+
+
+
+
+
+ loading relations +
-
-
-
-
-
- loading recommendations +
+

recommendations

+
+
+
+
+
+ loading recommendations +
@@ -274,7 +280,6 @@ func formatStatus(status string) string { templ AnimeRelationsList(relations []jikan.RelationEntry) { if len(relations) > 1 { -

related

for _, rel := range relations { if rel.IsCurrent { @@ -298,12 +303,13 @@ templ AnimeRelationsList(relations []jikan.RelationEntry) { } }
+ } else { +

no related anime found.

} } templ AnimeRecommendations(recs []jikan.Anime) { if len(recs) > 0 { -

recommendations

+ } else { +

no recommendations available.

} } diff --git a/internal/templates/anime_templ.go b/internal/templates/anime_templ.go index d5c489e..c22ce77 100644 --- a/internal/templates/anime_templ.go +++ b/internal/templates/anime_templ.go @@ -238,33 +238,33 @@ func AnimeDetails(anime jikan.Anime, currentStatus string) templ.Component { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "

related

loading relations
loading relations

recommendations

loading recommendations