diff options
Diffstat (limited to 'frontend/frontend.go')
-rw-r--r-- | frontend/frontend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/frontend.go b/frontend/frontend.go index 0718bb136d1f..77a792f6440e 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -42,9 +42,11 @@ func loadTemplate(templateName string, funcMap template.FuncMap) (*template.Temp } // MakeFrontend configures the router and returns a new Frontend struct -func MakeFrontend(runner *submitqueue.Runner, submitQueue *submitqueue.SubmitQueue) *Frontend { +func MakeFrontend(runner *submitqueue.Runner) *Frontend { router := gin.Default() + submitQueue := runner.GetSubmitQueue() + funcMap := template.FuncMap{ "isAutoSubmittable": func(serie *submitqueue.Serie) bool { return submitQueue.IsAutoSubmittable(serie) |