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

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

Issue 2835193006: Milo: Add timestamp name and tooltip (Closed)
Patch Set: Retrain, off-by-one Created 3 years, 7 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"}} 1 {{define "title"}}
2 {{ with .Build.Summary -}} 2 {{ with .Build.Summary -}}
3 {{ if eq .Status.String "InfraFailure" }} 3 {{ if eq .Status.String "InfraFailure" }}
4 Exception 4 Exception
5 {{ else if eq .Status.String "Failure" }} 5 {{ else if eq .Status.String "Failure" }}
6 Failed 6 Failed
7 {{ else if eq .Status.String "NotRun" }} 7 {{ else if eq .Status.String "NotRun" }}
8 Pending 8 Pending
9 {{ else }} 9 {{ else }}
10 {{ .Status.String }} 10 {{ .Status.String }}
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 <input type="checkbox" id="showHidden"> 146 <input type="checkbox" id="showHidden">
147 <label for="showHidden">Show hidden <span id="numHidden"></span></label> 147 <label for="showHidden">Show hidden <span id="numHidden"></span></label>
148 <ol id="steps" class="hide"> 148 <ol id="steps" class="hide">
149 149
150 {{ with .Build.Summary }} 150 {{ with .Build.Summary }}
151 {{ if .SubLink }} 151 {{ if .SubLink }}
152 <li class="verbosity-{{.Verbosity.String}}"> 152 <li class="verbosity-{{.Verbosity.String}}">
153 <div class="status-{{.Status}} result"> 153 <div class="status-{{.Status}} result">
154 <b>Steps</b> 154 <b>Steps</b>
155 {{ if .Duration -}} 155 {{ if .Duration -}}
156 <span style="float:right">( {{ .Duration | humanDuration }} )</s pan> 156 <span style="float:right"
nodir 2017/04/29 01:26:40 probably we will have more places where we need to
hinoka 2017/05/02 03:33:14 the span might need other things though, like styl
nodir 2017/05/02 14:58:02 It might be premature generalization
157 class="duration"
158 data-starttime="{{ .Started | formatTime }}"
159 {{ if .Finished }}
160 data-endtime="{{ .Finished | formatTime }}"
161 {{ end }}>
162 ( {{ .Duration | humanDuration }} )</span>
157 {{- end }} 163 {{- end }}
158 </div> 164 </div>
159 <ul> 165 <ul>
160 {{ range .SubLink }} 166 {{ range .SubLink }}
161 <li>{{ . | linkifySet }}</li> 167 <li>{{ . | linkifySet }}</li>
162 {{ end }} 168 {{ end }}
163 </ul> 169 </ul>
164 </li> 170 </li>
165 {{ end }} 171 {{ end }}
166 {{ end }} 172 {{ end }}
167 173
168 {{ range .Build.Components }} 174 {{ range .Build.Components }}
169 <li class="verbosity-{{.Verbosity.String}}"> 175 <li class="verbosity-{{.Verbosity.String}}">
170 <div class="status-{{.Status}} result"> 176 <div class="status-{{.Status}} result">
171 <b>{{.Label}}</b> 177 <b>{{.Label}}</b>
172 {{ if .Duration -}} 178 {{ if .Duration -}}
173 <span style="float:right">( {{ .Duration | humanDuration }} )</s pan> 179 <span style="float:right"
180 class="duration"
181 data-starttime="{{ .Started | formatTime }}"
182 {{ if .Finished }}
183 data-endtime="{{ .Finished | formatTime }}"
184 {{ end }}>
185 ( {{ .Duration | humanDuration }} )</span>
174 {{- end }} 186 {{- end }}
175 <span> 187 <span>
176 {{ range .Text -}} 188 {{ range .Text -}}
177 <div class="step-text"> 189 <div class="step-text">
178 {{- if . -}}{{- . -}}{{- else -}}&nbsp;{{- end -}} 190 {{- if . -}}{{- . -}}{{- else -}}&nbsp;{{- end -}}
179 </div> 191 </div>
180 {{- end }} 192 {{- end }}
181 </span> 193 </span>
182 </div> 194 </div>
183 <ul> 195 <ul>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 339 }
328 }; 340 };
329 341
330 check($("#showHidden").is(":checked")); 342 check($("#showHidden").is(":checked"));
331 $("#showHidden").click(function(e) { 343 $("#showHidden").click(function(e) {
332 check($(this).is(":checked")); 344 check($(this).is(":checked"));
333 }); 345 });
334 }); 346 });
335 </script> 347 </script>
336 {{end}} 348 {{end}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698