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

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

Issue 2987953002: Milo: Show accurate pending build numbers for builder view. (Closed)
Patch Set: Created 3 years, 4 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/buildsource/buildbucket/expectations/master.tryserver.infra/InfraPresubmit.Swarming.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{define "title"}}Builder {{ .Builder.Name }}{{end}} 1 {{define "title"}}Builder {{ .Builder.Name }}{{end}}
2 2
3 {{define "head"}} 3 {{define "head"}}
4 <link id="favicon" rel="shortcut icon" 4 <link id="favicon" rel="shortcut icon"
5 type="image/png" href="/static/common/favicon/milo-32.png"> 5 type="image/png" href="/static/common/favicon/milo-32.png">
6 {{end}} 6 {{end}}
7 7
8 {{define "blamelist"}} 8 {{define "blamelist"}}
9 {{ if . }} 9 {{ if . }}
10 {{ $nb := len . }} 10 {{ $nb := len . }}
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 </li> 89 </li>
90 {{ end }} 90 {{ end }}
91 </ul> 91 </ul>
92 {{ else }} 92 {{ else }}
93 <h2>No current builds</h2> 93 <h2>No current builds</h2>
94 {{ end }} 94 {{ end }}
95 </div> 95 </div>
96 96
97 <div class="column"> 97 <div class="column">
98 {{ if .Builder.PendingBuilds -}} 98 {{ if .Builder.PendingBuilds -}}
99 <h2>Pending Build Requests ({{len .Builder.PendingBuilds}}):</h2> 99 » » <h2>Pending Build Requests (
100 » » » {{- if gt .Builder.PendingBuildNum (len .Builder.Pending Builds) -}}
101 » » » » {{ .Builder.PendingBuildNum }} showing
102 » » » {{ end -}}{{- len .Builder.PendingBuilds -}}):</h2>
100 <ul> 103 <ul>
101 {{- range .Builder.PendingBuilds -}} 104 {{- range .Builder.PendingBuilds -}}
102 <li> 105 <li>
103 <small>({{- .PendingTime.Started | localTime "" }}, waiting {{ .PendingT ime.Duration | humanDuration -}})</small> 106 <small>({{- .PendingTime.Started | localTime "" }}, waiting {{ .PendingT ime.Duration | humanDuration -}})</small>
104 {{- with .Blame }}{{- template "blamelist" -}}{{- end -}} 107 {{- with .Blame }}{{- template "blamelist" -}}{{- end -}}
105 </li> 108 </li>
106 {{- end -}} 109 {{- end -}}
107 </ul> 110 </ul>
108 {{ else }} 111 {{ else }}
109 <h2>No Pending Build Requests</h2> 112 <h2>No Pending Build Requests</h2>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 <a href="{{ pagedURL .Request 50 "" }}">50</a> 184 <a href="{{ pagedURL .Request 50 "" }}">50</a>
182 <a href="{{ pagedURL .Request 100 "" }}">100</a> 185 <a href="{{ pagedURL .Request 100 "" }}">100</a>
183 <a href="{{ pagedURL .Request 200 "" }}">200</a> 186 <a href="{{ pagedURL .Request 200 "" }}">200</a>
184 ) 187 )
185 {{ if .Builder.NextCursor }} 188 {{ if .Builder.NextCursor }}
186 <a href="{{ pagedURL .Request 0 .Builder.NextCursor}}">Next</a> 189 <a href="{{ pagedURL .Request 0 .Builder.NextCursor}}">Next</a>
187 {{ end }} 190 {{ end }}
188 </div> 191 </div>
189 192
190 {{end}} 193 {{end}}
OLDNEW
« no previous file with comments | « milo/buildsource/buildbucket/expectations/master.tryserver.infra/InfraPresubmit.Swarming.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698