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

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

Issue 2921573002: Milo UI tweaks (Closed)
Patch Set: only -> Only 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/static/buildbot/css/default.css ('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"}} 1 {{define "title"}}
2 {{ with .Build.Summary -}} 2 {{ with .Build.Summary -}}
3 {{ if eq .Status.String "InfraFailure" }} 3 {{ if eq .Status.String "InfraFailure" }}
4 Infra Failure 4 Infra Failure
5 {{ else if eq .Status.String "Exception" }} 5 {{ else if eq .Status.String "Exception" }}
6 Exception 6 Exception
7 {{ else if eq .Status.String "Failure" }} 7 {{ else if eq .Status.String "Failure" }}
8 Failed 8 Failed
9 {{ else if eq .Status.String "NotRun" }} 9 {{ else if eq .Status.String "NotRun" }}
10 Pending 10 Pending
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 {{ end }} 147 {{ end }}
148 148
149 {{ if or .Build.Components .Build.Summary.SubLink }} 149 {{ if or .Build.Components .Build.Summary.SubLink }}
150 <h2>Steps and Logfiles:</h2> 150 <h2>Steps and Logfiles:</h2>
151 Show: 151 Show:
152 <input type="radio" name="hider" id="showAll"> 152 <input type="radio" name="hider" id="showAll">
153 <label for="showAll">All</label> 153 <label for="showAll">All</label>
154 <input type="radio" name="hider" id="showStandard" checked> 154 <input type="radio" name="hider" id="showStandard" checked>
155 <label for="showStandard">Standard</label> 155 <label for="showStandard">Standard</label>
156 <input type="radio" name="hider" id="showInteresting"> 156 <input type="radio" name="hider" id="showInteresting">
157 <label for="showInteresting">Interesting Only</label> 157 <label for="showInteresting">Non-Green Only</label>
158 <ol id="steps" class="standard"> 158 <ol id="steps" class="standard">
159 159
160 {{ with .Build.Summary }} 160 {{ with .Build.Summary }}
161 {{ if .SubLink }} 161 {{ if .SubLink }}
162 <li class="verbosity-{{.Verbosity.String}}"> 162 <li class="verbosity-{{.Verbosity.String}}">
163 <div class="status-{{.Status}} result"> 163 <div class="status-{{.Status}} result">
164 <b>Steps</b>
165 {{ if .Duration -}} 164 {{ if .Duration -}}
166 <span style="float:right" 165 <span class="duration"
167 class="duration"
168 data-starttime="{{ .Started | formatTime }}" 166 data-starttime="{{ .Started | formatTime }}"
169 {{ if .Finished }}data-endtime="{{ .Finished | formatTime }}"{{ end }}> 167 {{ if .Finished }}data-endtime="{{ .Finished | formatTime }}"{{ end }}>
170 ( {{ .Duration | humanDuration }} )</span> 168 ( {{ .Duration | humanDuration }} )</span>
171 {{- end }} 169 {{- end }}
170 <b>Steps</b>
172 </div> 171 </div>
173 <ul> 172 <ul>
174 {{ range .SubLink }} 173 {{ range .SubLink }}
175 <li>{{ . | linkifySet }}</li> 174 <li class="sublink">{{ . | linkifySet }}</li>
176 {{ end }} 175 {{ end }}
177 </ul> 176 </ul>
178 </li> 177 </li>
179 {{ end }} 178 {{ end }}
180 {{ end }} 179 {{ end }}
181 180
182 {{ range .Build.Components }} 181 {{ range .Build.Components }}
183 <li class="verbosity-{{.Verbosity.String}}"> 182 <li class="verbosity-{{.Verbosity.String}}">
184 <div class="status-{{.Status}} result"> 183 <div class="status-{{.Status}} result">
185 <b>{{.Label}}</b>
186 {{ if .Duration -}} 184 {{ if .Duration -}}
187 <span style="float:right" 185 <span class="duration"
188 class="duration"
189 data-starttime="{{ .Started | formatTime }}" 186 data-starttime="{{ .Started | formatTime }}"
190 {{ if .Finished }}data-endtime="{{ .Finished | formatTime }} "{{ end }}> 187 {{ if .Finished }}data-endtime="{{ .Finished | formatTime }} "{{ end }}>
191 ( {{ .Duration | humanDuration }} )</span> 188 ( {{ .Duration | humanDuration }} )</span>
192 {{- end }} 189 {{- end }}
190 <b>{{.Label}}</b>
193 <span> 191 <span>
194 {{ range .Text -}} 192 {{ range .Text -}}
195 <div class="step-text"> 193 <div class="step-text">
196 {{- if . -}}{{- . -}}{{- else -}}&nbsp;{{- end -}} 194 {{- if . -}}{{- . -}}{{- else -}}&nbsp;{{- end -}}
197 </div> 195 </div>
198 {{- end }} 196 {{- end }}
199 </span> 197 </span>
200 </div> 198 </div>
201 <ul> 199 <ul>
202 {{ if .MainLink }} 200 {{ if .MainLink }}
203 <li>{{.MainLink | linkifySet}}</li> 201 <li class="sublink">{{.MainLink | linkifySet}}</li>
204 {{- if eq .Verbosity.String "Interesting" -}} 202 {{- if eq .Verbosity.String "Interesting" -}}
205 {{ range .MainLink }} 203 {{ range .MainLink }}
206 <link rel="prerender" href="{{.URL}}"> 204 <link rel="prerender" href="{{.URL}}">
207 <link rel="prefetch" href="{{.URL}}"> 205 <link rel="prefetch" href="{{.URL}}">
208 {{ end }} 206 {{ end }}
209 {{ end }} 207 {{ end }}
210 {{- end }} 208 {{- end }}
211 {{ range .SubLink }} 209 {{ range .SubLink }}
212 <li>{{. | linkifySet}}</li> 210 <li class="sublink">{{. | linkifySet}}</li>
213 {{ end }} 211 {{ end }}
214 {{ if not (or .MainLink .SubLink) }} 212 {{ if not (or .MainLink .SubLink) }}
215 <li> - no logs - </li> 213 <li class="sublink"> - no logs - </li>
216 {{ end }} 214 {{ end }}
217 </ul> 215 </ul>
218 </li> 216 </li>
219 {{ end }} 217 {{ end }}
220 </ol> 218 </ol>
221 {{ end }} <!-- if .Build.Components --> 219 {{ end }} <!-- if .Build.Components -->
222 220
223 </div> 221 </div>
224 222
225 <div class="column"> 223 <div class="column">
226 224
227 <h2>Build Properties:</h2> 225 <h2>Build Properties:</h2>
228 226
229 <table class="info" width="100%"> 227 <table class="info BuildProperties" width="100%">
230 <tr><th>Name</th><th>Value</th><th>Source</th></tr> 228 <tr><th>Name</th><th>Value</th><th>Source</th></tr>
231 229
232 {{ range .Build.PropertyGroup }} 230 {{ range .Build.PropertyGroup }}
233 {{ $name := .GroupName }} 231 {{ $name := .GroupName }}
234 {{ range .Property }} 232 {{ range .Property }}
235 <tr> 233 <tr>
236 <td class="left">{{.Key}}</td> 234 <td class="left">{{.Key}}</td>
237 <td>{{.Value}}</td> 235 <td class="middle"><abbr title="{{.Value}}">{{.Value}}</abbr></td>
238 <td>{{$name}}</td> 236 <td>{{$name}}</td>
239 </tr> 237 </tr>
240 {{ end }} 238 {{ end }}
241 {{ end }} 239 {{ end }}
242 </table> 240 </table>
243 241
244 {{ if .Build.Blame }} 242 {{ if .Build.Blame }}
245 <h2>Blamelist:</h2> 243 <h2>Blamelist:</h2>
246 <ol> 244 <ol>
247 {{ range .Build.Blame }} 245 {{ range .Build.Blame }}
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 }); 344 });
347 345
348 $("input[name='hider']").each(function(){ 346 $("input[name='hider']").each(function(){
349 if ($(this).prop("checked")) { 347 if ($(this).prop("checked")) {
350 $(this).click(); 348 $(this).click();
351 } 349 }
352 }); 350 });
353 }); 351 });
354 </script> 352 </script>
355 {{end}} 353 {{end}}
OLDNEW
« no previous file with comments | « milo/appengine/frontend/static/buildbot/css/default.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698