| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package console | 5 package console |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "net/http" | 8 "net/http" |
| 9 | 9 |
| 10 "github.com/luci/luci-go/milo/appengine/common" | 10 "github.com/luci/luci-go/milo/appengine/common" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 result, err := console(c.Context, project, name) | 24 result, err := console(c.Context, project, name) |
| 25 if err != nil { | 25 if err != nil { |
| 26 common.ErrorPage(c, http.StatusInternalServerError, err.Error()) | 26 common.ErrorPage(c, http.StatusInternalServerError, err.Error()) |
| 27 return | 27 return |
| 28 } | 28 } |
| 29 | 29 |
| 30 templates.MustRender(c.Context, c.Writer, "pages/console.html", template
s.Args{ | 30 templates.MustRender(c.Context, c.Writer, "pages/console.html", template
s.Args{ |
| 31 "Console": result, | 31 "Console": result, |
| 32 }) | 32 }) |
| 33 } | 33 } |
| OLD | NEW |