Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(811)

Unified Diff: milo/appengine/console/html.go

Issue 2748073006: Milo Refactor: Remove theme support (Closed)
Patch Set: Fix tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: milo/appengine/console/html.go
diff --git a/milo/appengine/console/html.go b/milo/appengine/console/html.go
index c482642d4d06e80b9ab394a23dae040f1a797b29..b293948bd3e13c3ec09eafe39a03231a5d6b1492 100644
--- a/milo/appengine/console/html.go
+++ b/milo/appengine/console/html.go
@@ -10,20 +10,12 @@ import (
"github.com/julienschmidt/httprouter"
"golang.org/x/net/context"
- "github.com/luci/luci-go/milo/appengine/settings"
"github.com/luci/luci-go/milo/common/miloerror"
"github.com/luci/luci-go/server/templates"
)
-type Console struct{}
-
-// GetTemplateName returns the template name for console pages.
-func (x Console) GetTemplateName(t settings.Theme) string {
- return "console.html"
-}
-
-// Render renders the console page.
-func (x Console) Render(c context.Context, r *http.Request, p httprouter.Params) (*templates.Args, error) {
+// ConsoleHandler renders the console page.
+func ConsoleHandler(c context.Context, r *http.Request, p httprouter.Params) (*templates.Args, error) {
project := p.ByName("project")
if project == "" {
return nil, &miloerror.Error{

Powered by Google App Engine
This is Rietveld 408576698