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}}