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

Unified Diff: appengine/cmd/milo/frontend/templates/buildbot/pages/build.html

Issue 2109473005: Milo: Pending swarming builds (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698