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

Side by Side Diff: appengine/cmd/milo/frontend/templates/buildbot/pages/builder.html

Issue 2134673003: milo: buildbucket builer view (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: rebased and regenerated expectations Created 4 years, 5 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
OLDNEW
1 {{define "title"}}Builder [[name here]]{{end}} 1 {{define "title"}}Builder {{.Builder.Name}}{{end}}
2 2
3 {{define "head"}}{{end}} 3 {{define "head"}}{{end}}
4 4
5 {{define "body"}} 5 {{define "body"}}
6 {{ if .Builder.CurrentBuilds }} 6 {{ if .Builder.CurrentBuilds }}
7 <h2>Current Builds:</h2> 7 <h2>Current Builds ({{len .Builder.CurrentBuilds}}):</h2>
8 <ul> 8 <ul>
9 {{ range .Builder.CurrentBuilds }} 9 {{ range .Builder.CurrentBuilds }}
10 <li>{{ .Link | linkify }} 10 <li>{{ .Link | linkify }}
11 [Running for: {{ .ExecutionTime.Duration | humanDuration }}] 11 [Running for: {{ .ExecutionTime.Duration | humanDuration }}]
12 {{ range .Text }} {{ . }}{{ end }} 12 {{ range .Text }} {{ . }}{{ end }}
13 </li> 13 </li>
14 {{ end }} 14 {{ end }}
15 </ul> 15 </ul>
16 {{ else }} 16 {{ else }}
17 <h2>No current builds</h2> 17 <h2>No current builds</h2>
18 {{ end }} 18 {{ end }}
19 19
20 {{ if .Builder.PendingBuilds }} 20 {{ if .Builder.PendingBuilds }}
21 <h2>Pending Build Requests:</h2> 21 <h2>Pending Build Requests ({{len .Builder.PendingBuilds}}):</h2>
22 <ul> 22 <ul>
23 {{ range .Builder.PendingBuilds }} 23 {{ range .Builder.PendingBuilds }}
24 <li><small>({{ .PendingTime.Started | localTime "" }}, waiting {{ .PendingTi me.Duration | humanDuration }})</small> 24 <li><small>({{ .PendingTime.Started | localTime "" }}, waiting {{ .PendingTi me.Duration | humanDuration }})</small>
25 25
26 {{ $nb := len .Blame }} 26 {{ $nb := len .Blame }}
27 {{ if lt $nb 4 }} 27 {{ if lt $nb 4 }}
28 {{ range $i, $c := .Blame }} 28 {{ range $i, $c := .Blame }}
29 {{ .Revision }}
30 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>) 29 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>)
31 {{ if ne $i (sub $nb 1) }},{{ end }} 30 {{ if ne $i (sub $nb 1) }},{{ end }}
32 {{ end }} 31 {{ end }}
33 {{ else }} 32 {{ else }}
34 ({{ $nb }} changes) 33 ({{ $nb }} changes)
35 {{ end }} 34 {{ end }}
36 35
37 </li> 36 </li>
38 {{ end }} 37 {{ end }}
39 </ul> 38 </ul>
(...skipping 15 matching lines...) Expand all
55 </tr> 54 </tr>
56 55
57 {{ range .Builder.FinishedBuilds }} 56 {{ range .Builder.FinishedBuilds }}
58 <tr> 57 <tr>
59 <td>{{ .ExecutionTime.Finished | localTime "" }}</td> 58 <td>{{ .ExecutionTime.Finished | localTime "" }}</td>
60 <td class="revision">{{ .Revision }}</td> 59 <td class="revision">{{ .Revision }}</td>
61 {{ if eq .Status.String "Success" }} 60 {{ if eq .Status.String "Success" }}
62 <td class="success">Success</td> 61 <td class="success">Success</td>
63 {{ else if eq .Status.String "Failure" }} 62 {{ else if eq .Status.String "Failure" }}
64 <td class="failure">Failed</td> 63 <td class="failure">Failed</td>
64 {{ else if eq .Status.String "InfraFailure" }}
65 <td class="exception">Infra Failure</td>
65 {{ else }} 66 {{ else }}
66 <td> {{ .Status.String }} </td> 67 <td> {{ .Status.String }} </td>
67 {{ end }} 68 {{ end }}
68 <td>{{ .Link | linkify }}</td> 69 <td>{{ .Link | linkify }}</td>
69 <td> 70 <td>
70 {{ $nb := len .Blame }} 71 {{ $nb := len .Blame }}
71 {{ if lt $nb 4 }} 72 {{ if lt $nb 4 }}
72 {{ range $i, $c := .Blame }} 73 {{ range $i, $c := .Blame }}
73 {{ .Revision }}
74 {{ if gt $i 0 }},{{ end }} 74 {{ if gt $i 0 }},{{ end }}
75 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>) 75 {{ if .Changelist }}
76 {{ .Changelist | linkify }}
77 {{ if .AuthorEmail }}
78 by {{ .AuthorEmail }}
79 {{ end }}
80 {{ else }}
81 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>)
82 {{ end }}
76 {{ end }} 83 {{ end }}
77 {{ else }} 84 {{ else }}
78 ({{ $nb }} changes) 85 ({{ $nb }} changes)
79 {{ end }} 86 {{ end }}
80 </td> 87 </td>
81 <td class="left">{{ .Text }}</td> 88 <td class="left">
89 {{ .Text }}
90 </td>
82 </tr> 91 </tr>
83 {{ end }} 92 {{ end }}
84 </table> 93 </table>
85 {{ else }} 94 {{ else }}
86 <h2>No Recent Builds</h2> 95 <h2>No Recent Builds</h2>
87 {{ end }} 96 {{ end }}
88 97
89 </div> 98 </div>
90 99
91 {{end}} 100 {{end}}
OLDNEW
« no previous file with comments | « appengine/cmd/milo/frontend/templates/bootstrap/pages/builder.html ('k') | appengine/cmd/milo/frontend/testdata/buildbucket » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698