From bffdcb5241b4cb9456c9a1c3b919420b7ffe1b9a Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 8 Apr 2026 16:00:49 +0200 Subject: [PATCH] chore: use proper casing --- internal/templates/anime.templ | 32 ++++++++++----------- internal/templates/anime_templ.go | 34 +++++++++++------------ internal/templates/auth.templ | 28 +++++++++---------- internal/templates/auth_templ.go | 4 +-- internal/templates/catalog.templ | 4 +-- internal/templates/catalog_templ.go | 4 +-- internal/templates/discovery.templ | 2 +- internal/templates/discovery_templ.go | 2 +- internal/templates/index.templ | 4 +-- internal/templates/index_templ.go | 2 +- internal/templates/layout.templ | 12 ++++---- internal/templates/layout_templ.go | 2 +- internal/templates/notifications.templ | 28 +++++++++---------- internal/templates/notifications_templ.go | 14 +++++----- internal/templates/schedule.templ | 24 ++++++++-------- internal/templates/schedule_templ.go | 6 ++-- internal/templates/sort_filter.templ | 14 +++++----- internal/templates/sort_filter_templ.go | 12 ++++---- internal/templates/watchlist.templ | 18 ++++++------ internal/templates/watchlist_templ.go | 16 +++++------ 20 files changed, 131 insertions(+), 131 deletions(-) diff --git a/internal/templates/anime.templ b/internal/templates/anime.templ index 19f9cd5..4f72887 100644 --- a/internal/templates/anime.templ +++ b/internal/templates/anime.templ @@ -13,7 +13,7 @@ templ AnimeDetails(anime jikan.Anime, currentStatus string) { if anime.ImageURL() != "" { { } else { -
no image
+
No image
}
@@ -41,32 +41,32 @@ templ AnimeDetails(anime jikan.Anime, currentStatus string) {
-

synopsis

+

Synopsis

if anime.Synopsis != "" {

{ anime.Synopsis }

} else { -

no synopsis available.

+

No synopsis available.

}
-

related

+

Related

- loading relations + Loading relations
-

recommendations

+

Recommendations

- loading recommendations + Loading recommendations
@@ -225,7 +225,7 @@ templ WatchlistDropdown(animeID int, animeTitle string, animeTitleEnglish string hx-delete={ string(templ.URL(fmt.Sprintf("/api/watchlist/%d", animeID))) } hx-target="#watchlist-dropdown" hx-swap="outerHTML" - >remove from list + >Remove from list } @@ -264,15 +264,15 @@ templ statusOption(anime jikan.Anime, status string, currentStatus string) { func formatStatus(status string) string { switch status { case "watching": - return "watching" + return "Watching" case "completed": - return "completed" + return "Completed" case "on_hold": - return "on hold" + return "On hold" case "dropped": - return "dropped" + return "Dropped" case "plan_to_watch": - return "plan to watch" + return "Plan to watch" default: return status } @@ -287,7 +287,7 @@ templ AnimeRelationsList(relations []jikan.RelationEntry) { if rel.Anime.ImageURL() != "" { { } else { -
no image
+
No image
}
{ rel.Anime.DisplayTitle() }
@@ -296,7 +296,7 @@ templ AnimeRelationsList(relations []jikan.RelationEntry) { if rel.Anime.ImageURL() != "" { { } else { -
no image
+
No image
}
{ rel.Anime.DisplayTitle() }
@@ -316,7 +316,7 @@ templ AnimeRecommendations(recs []jikan.Anime) { if anime.ImageURL() != "" { { } else { -
no image
+
No image
}
{ anime.DisplayTitle() }
diff --git a/internal/templates/anime_templ.go b/internal/templates/anime_templ.go index c22ce77..c040d19 100644 --- a/internal/templates/anime_templ.go +++ b/internal/templates/anime_templ.go @@ -81,7 +81,7 @@ func AnimeDetails(anime jikan.Anime, currentStatus string) templ.Component { return templ_7745c5c3_Err } } else { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "
no image
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "
No image
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -210,7 +210,7 @@ func AnimeDetails(anime jikan.Anime, currentStatus string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "

synopsis

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "

Synopsis

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -233,12 +233,12 @@ func AnimeDetails(anime jikan.Anime, currentStatus string) templ.Component { return templ_7745c5c3_Err } } else { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "

no synopsis available.

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "

No synopsis available.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "

related

Related

loading relations

recommendations

Loading relations

Recommendations

loading recommendations