From 18f9ec2a951b7316920e492bfb78e89d42cb7a79 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 13 Jun 2026 20:48:26 +0200 Subject: [PATCH] refactor: switch watch layout to CSS grid --- templates/watch.gohtml | 151 ++++++++++++++++++++--------------------- 1 file changed, 75 insertions(+), 76 deletions(-) diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 7dfdff6..b61b31d 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -1,5 +1,10 @@ {{define "title"}}Watch {{.Anime.Title}}{{end}} {{define "scripts"}}{{end}} +{{define "page_container"}} +
+ {{template "content" .}} +
+{{end}} {{define "content"}} {{if .WatchlistIDs}}{{end}} {{$anime := .Anime}} @@ -11,80 +16,8 @@ {{$rangeStart := episodeRangeStart $currentEpNum 100}} {{$rangeEnd := min (add $rangeStart 99) $totalEpisodes}} -
-
-
- - - Back - - -
- -
- -
-
+
+
{{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $totalEpisodes}}
@@ -107,7 +40,73 @@ {{end}}
-
+
+ +
+ +
+ +
-
+
{{if .Seasons}} {{$currentSeason := dict "Prefix" "" "Title" $anime.Title}} {{range .Seasons}}