From 489d025426fe68d4a410c172b4cacfe8a985c6dd Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 4 Jul 2026 05:08:28 +0200 Subject: [PATCH] feat: always render prev/next buttons with aria and data attrs --- templates/watch.gohtml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/watch.gohtml b/templates/watch.gohtml index 7fa0277f..ca4ab184 100644 --- a/templates/watch.gohtml +++ b/templates/watch.gohtml @@ -42,19 +42,17 @@
{{$prevEp := sub (int $currentEpID) 1}} - {{if ge $prevEp 1}} - + {{$prevTarget := $prevEp}}{{if lt $prevTarget 1}}{{$prevTarget = 1}}{{end}} + Prev - {{end}} {{$nextEp := add (int $currentEpID) 1}} - {{if le $nextEp $totalEpisodes}} - + {{$nextTarget := $nextEp}}{{if gt $nextTarget $totalEpisodes}}{{$nextTarget = $totalEpisodes}}{{end}} + Next - {{end}}