frontend: reorder things passed to template

This commit is contained in:
Florian Klink 2019-11-27 13:00:50 +01:00
parent 69f0963a17
commit d81ae74999

View file

@ -76,11 +76,16 @@ func MakeFrontend(runner *submitqueue.Runner) http.Handler {
}, funcMap)) }, funcMap))
tmpl.ExecuteTemplate(c.Writer, "submit-queue.tmpl.html", gin.H{ tmpl.ExecuteTemplate(c.Writer, "submit-queue.tmpl.html", gin.H{
"series": submitQueue.Series, // Config
"projectName": submitQueue.ProjectName, "projectName": submitQueue.ProjectName,
"branchName": submitQueue.BranchName, "branchName": submitQueue.BranchName,
"HEAD": submitQueue.HEAD,
// State
"currentlyRunning": currentlyRunning, "currentlyRunning": currentlyRunning,
"series": submitQueue.Series,
"HEAD": submitQueue.HEAD,
// History
"results": results, "results": results,
}) })
}) })