From 8e1bfdc18f96c75bae919d06ba094bc094cca951 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 19 May 2026 11:14:40 +0200 Subject: [PATCH] refactor: group episode nav with segment editor in watch toolbar --- templates/watch.gohtml | 48 +++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 6c8f84d..5615ef4 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -53,12 +53,30 @@ {{template "video_player" dict "WatchData" .WatchData "TotalEpisodes" $totalEpisodes}} -
-
- +
+
+ {{$prevEp := sub (int $currentEpID) 1}} + {{if ge $prevEp 1}} + + + Prev + + {{end}} + {{$nextEp := add (int $currentEpID) 1}} + {{if le $nextEp $totalEpisodes}} + + Next + + + {{end}} +
+ +
+
+
-
- -
-
- {{$prevEp := sub (int $currentEpID) 1}} - {{if ge $prevEp 1}} - - - Prev - - {{end}} - {{$nextEp := add (int $currentEpID) 1}} - {{if le $nextEp $totalEpisodes}} - - Next - - - {{end}}