| 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 buildbucket | 5 package buildbucket |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "errors" | 8 "errors" |
| 9 "net/http" | 9 "net/http" |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 result, err := builderImpl(c.Context, query) | 50 result, err := builderImpl(c.Context, query) |
| 51 if err != nil { | 51 if err != nil { |
| 52 common.ErrorPage(c, http.StatusInternalServerError, err.Error()) | 52 common.ErrorPage(c, http.StatusInternalServerError, err.Error()) |
| 53 return | 53 return |
| 54 } | 54 } |
| 55 | 55 |
| 56 templates.MustRender(c.Context, c.Writer, "pages/builder.html", template
s.Args{ | 56 templates.MustRender(c.Context, c.Writer, "pages/builder.html", template
s.Args{ |
| 57 "Builder": result, | 57 "Builder": result, |
| 58 }) | 58 }) |
| 59 } | 59 } |
| OLD | NEW |