| Index: appengine/cmd/cron/ui/project.go
|
| diff --git a/appengine/cmd/cron/ui/project.go b/appengine/cmd/cron/ui/project.go
|
| index 583841b1b10f196d9e91e18a5053fefc719bd959..623092f65c8067cd4818935385238573a8fc4f03 100644
|
| --- a/appengine/cmd/cron/ui/project.go
|
| +++ b/appengine/cmd/cron/ui/project.go
|
| @@ -1,27 +1,23 @@
|
| // Copyright 2015 The LUCI Authors. All rights reserved.
|
| // Use of this source code is governed under the Apache License, Version 2.0
|
| // that can be found in the LICENSE file.
|
|
|
| package ui
|
|
|
| import (
|
| - "net/http"
|
| -
|
| - "github.com/julienschmidt/httprouter"
|
| - "golang.org/x/net/context"
|
| -
|
| "github.com/luci/luci-go/common/clock"
|
| + "github.com/luci/luci-go/server/router"
|
| "github.com/luci/luci-go/server/templates"
|
| )
|
|
|
| -func projectPage(c context.Context, w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
| - projectID := p.ByName("ProjectID")
|
| - jobs, err := config(c).Engine.GetProjectCronJobs(c, projectID)
|
| +func projectPage(c *router.Context) {
|
| + projectID := c.Params.ByName("ProjectID")
|
| + jobs, err := config(c.Context).Engine.GetProjectCronJobs(c.Context, projectID)
|
| if err != nil {
|
| panic(err)
|
| }
|
| - templates.MustRender(c, w, "pages/project.html", map[string]interface{}{
|
| + templates.MustRender(c.Context, c.Writer, "pages/project.html", map[string]interface{}{
|
| "ProjectID": projectID,
|
| - "Jobs": convertToSortedCronJobs(jobs, clock.Now(c).UTC()),
|
| + "Jobs": convertToSortedCronJobs(jobs, clock.Now(c.Context).UTC()),
|
| })
|
| }
|
|
|