From b5f1b17684ca77e710e13466cdfc4f84c9e609d8 Mon Sep 17 00:00:00 2001 From: H3ALY Date: Wed, 23 Apr 2025 11:54:45 +0100 Subject: [PATCH] Fix loading of tickets missing range class. --- helpers/template/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/template/build.go b/helpers/template/build.go index 946bc2b..90070a8 100644 --- a/helpers/template/build.go +++ b/helpers/template/build.go @@ -91,6 +91,7 @@ func TemplateFuncs() template.FuncMap { return "" } }, + "rangeClass": rangeClass, } } @@ -132,7 +133,6 @@ func PageRange(current, total int) []int { return pages } -// ToDo: Should be ball range class, and should it even be here? func rangeClass(n int) string { switch { case n >= 1 && n <= 9: