| 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 frontend | 5 package frontend |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "github.com/luci/luci-go/server/router" | 8 "github.com/luci/luci-go/server/router" |
| 9 "github.com/luci/luci-go/server/templates" | 9 "github.com/luci/luci-go/server/templates" |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 func frontpageTestData() []common.TestBundle { | 45 func frontpageTestData() []common.TestBundle { |
| 46 data := &templates.Args{ | 46 data := &templates.Args{ |
| 47 "frontpage": resp.FrontPage{ | 47 "frontpage": resp.FrontPage{ |
| 48 CIServices: []resp.CIService{ | 48 CIServices: []resp.CIService{ |
| 49 { | 49 { |
| 50 Name: "Module 1", | 50 Name: "Module 1", |
| 51 BuilderGroups: []resp.BuilderGroup{ | 51 BuilderGroups: []resp.BuilderGroup{ |
| 52 { | 52 { |
| 53 Name: "Example master A"
, | 53 Name: "Example master A"
, |
| 54 Builders: []resp.Link{ | 54 Builders: []resp.Link{ |
| 55 » » » » » » » » { | 55 » » » » » » » » *resp.NewLink("E
xample builder", "/master1/buildera"), |
| 56 » » » » » » » » » Label: "
Example builder", | 56 » » » » » » » » *resp.NewLink("E
xample builder 2", "/master1/builderb"), |
| 57 » » » » » » » » » URL: "
/master1/buildera", | |
| 58 » » » » » » » » }, | |
| 59 » » » » » » » » { | |
| 60 » » » » » » » » » Label: "
Example builder 2", | |
| 61 » » » » » » » » » URL: "
/master1/builderb", | |
| 62 » » » » » » » » }, | |
| 63 }, | 57 }, |
| 64 }, | 58 }, |
| 65 }, | 59 }, |
| 66 }, | 60 }, |
| 67 }, | 61 }, |
| 68 }, | 62 }, |
| 69 "error": "couldn't find ice cream", | 63 "error": "couldn't find ice cream", |
| 70 } | 64 } |
| 71 return []common.TestBundle{ | 65 return []common.TestBundle{ |
| 72 { | 66 { |
| 73 Description: "Basic frontpage", | 67 Description: "Basic frontpage", |
| 74 Data: *data, | 68 Data: *data, |
| 75 }, | 69 }, |
| 76 } | 70 } |
| 77 } | 71 } |
| OLD | NEW |