Started working on job UI implementation

This commit is contained in:
2018-04-28 19:44:44 +02:00
parent 3983894a27
commit 59633707c1
6 changed files with 61 additions and 1 deletions

17
pages/editor/jobs/jobs.go Normal file
View File

@ -0,0 +1,17 @@
package jobs
import (
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
var running = map[string]bool{}
var lastRun = map[string]string{}
// Overview shows all background jobs.
func Overview(ctx *aero.Context) string {
user := utils.GetUser(ctx)
return ctx.HTML(components.EditorJobs(running, lastRun, ctx.URI(), user))
}