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

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

Issue 2768913005: Milo: Fix empty lines in step text (Closed)
Patch Set: Review and Tests Created 3 years, 9 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 {{ end }} 166 {{ end }}
167 167
168 {{ range .Build.Components }} 168 {{ range .Build.Components }}
169 <li class="verbosity-{{.Verbosity.String}}"> 169 <li class="verbosity-{{.Verbosity.String}}">
170 <div class="status-{{.Status}} result"> 170 <div class="status-{{.Status}} result">
171 <b>{{.Label}}</b> 171 <b>{{.Label}}</b>
172 {{ if .Duration -}} 172 {{ if .Duration -}}
173 <span style="float:right">( {{ .Duration | humanDuration }} )</s pan> 173 <span style="float:right">( {{ .Duration | humanDuration }} )</s pan>
174 {{- end }} 174 {{- end }}
175 <span> 175 <span>
176 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} 176 {{ range .Text -}}
177 <div class="step-text">
178 {{- if . -}}{{- . -}}{{- else -}}&nbsp;{{- end -}}
179 </div>
180 {{- end }}
177 </span> 181 </span>
178 </div> 182 </div>
179 <ul> 183 <ul>
180 {{ if .MainLink }} 184 {{ if .MainLink }}
181 <li>{{.MainLink | linkifySet}}</li> 185 <li>{{.MainLink | linkifySet}}</li>
182 {{- if eq .Verbosity.String "Interesting" -}} 186 {{- if eq .Verbosity.String "Interesting" -}}
183 {{ range .MainLink }} 187 {{ range .MainLink }}
184 <link rel="prerender" href="{{.URL}}"> 188 <link rel="prerender" href="{{.URL}}">
185 <link rel="prefetch" href="{{.URL}}"> 189 <link rel="prefetch" href="{{.URL}}">
186 {{ end }} 190 {{ end }}
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 296 }
293 }; 297 };
294 298
295 check($("#showHidden").is(":checked")); 299 check($("#showHidden").is(":checked"));
296 $("#showHidden").click(function(e) { 300 $("#showHidden").click(function(e) {
297 check($(this).is(":checked")); 301 check($(this).is(":checked"));
298 }); 302 });
299 }); 303 });
300 </script> 304 </script>
301 {{end}} 305 {{end}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698