frontend: expose the currentlyRunning value
This commit is contained in:
parent
b65f56c6e2
commit
b0f08a99ee
2 changed files with 13 additions and 5 deletions
|
@ -45,7 +45,7 @@ func MakeFrontend(runner *submitqueue.Runner) http.Handler {
|
|||
})
|
||||
|
||||
router.GET("/", func(c *gin.Context) {
|
||||
submitQueue, _, _ := runner.GetState()
|
||||
submitQueue, currentlyRunning, results := runner.GetState()
|
||||
|
||||
funcMap := template.FuncMap{
|
||||
"isAutoSubmittable": func(serie *submitqueue.Serie) bool {
|
||||
|
@ -63,6 +63,8 @@ func MakeFrontend(runner *submitqueue.Runner) http.Handler {
|
|||
"projectName": submitQueue.ProjectName,
|
||||
"branchName": submitQueue.BranchName,
|
||||
"HEAD": submitQueue.HEAD,
|
||||
"currentlyRunning": currentlyRunning,
|
||||
"results": results,
|
||||
})
|
||||
})
|
||||
return router
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue