| Index: appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
|
| diff --git a/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html b/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
|
| index 267fb16a7fdf304f6fe774cc2451be7a87f9a309..c46b56a0021986dad86f666d9b884a2beb3c4f10 100644
|
| --- a/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
|
| +++ b/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
|
| @@ -18,6 +18,8 @@
|
| <p class="exception result">Internal Failure
|
| {{ else if eq .Status.String "Failure" }}
|
| <p class="failure result">Build Failed
|
| + {{ else if eq .Status.String "NotRun" }}
|
| + <p class="pending result">Build Pending
|
| {{ else }}
|
| <p class="failure result">Unknown status {{.Status.String }}
|
| {{ end }}
|
| @@ -85,31 +87,33 @@
|
| {{ end }}
|
| {{ end }}
|
|
|
| - <h2>Steps and Logfiles:</h2>
|
| - <ol>
|
| - {{ range .Build.Components }}
|
| - <li>
|
| - <div class="status-{{.Status}} result">
|
| - <b>{{.Label}}</b>
|
| - <span style="float:right">( {{ .Duration | humanDuration }} )</span>
|
| - <span>
|
| - {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }}
|
| - </span>
|
| - </div>
|
| - <ul>
|
| - {{ if .MainLink }}
|
| - <li>{{.MainLink | linkify}}</li>
|
| - {{ end }}
|
| - {{ range .SubLink }}
|
| - <li>{{. | linkify}}</li>
|
| - {{ end }}
|
| - {{ if not (or .MainLink .SubLink) }}
|
| - <li> - no logs - </li>
|
| - {{ end }}
|
| - </ul>
|
| - </li>
|
| - {{ end }}
|
| - </ol>
|
| + {{ if .Build.Components }}
|
| + <h2>Steps and Logfiles:</h2>
|
| + <ol>
|
| + {{ range .Build.Components }}
|
| + <li>
|
| + <div class="status-{{.Status}} result">
|
| + <b>{{.Label}}</b>
|
| + <span style="float:right">( {{ .Duration | humanDuration }} )</span>
|
| + <span>
|
| + {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }}
|
| + </span>
|
| + </div>
|
| + <ul>
|
| + {{ if .MainLink }}
|
| + <li>{{.MainLink | linkify}}</li>
|
| + {{ end }}
|
| + {{ range .SubLink }}
|
| + <li>{{. | linkify}}</li>
|
| + {{ end }}
|
| + {{ if not (or .MainLink .SubLink) }}
|
| + <li> - no logs - </li>
|
| + {{ end }}
|
| + </ul>
|
| + </li>
|
| + {{ end }}
|
| + </ol>
|
| + {{ end }} <!-- if .Build.Components -->
|
|
|
| </div>
|
|
|
|
|