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

Side by Side Diff: milo/appengine/frontend/frontpage.go

Issue 2944633003: [milo] Add BuildSummary and common models. (Closed)
Patch Set: add comments Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « milo/appengine/frontend/buildbot_data.go ('k') | milo/appengine/logdog/build.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « milo/appengine/frontend/buildbot_data.go ('k') | milo/appengine/logdog/build.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698