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

Unified Diff: milo/frontend/appengine/templates/pages/console.html

Issue 2978293002: [milo] Add an (uncached) method to get console rows. (Closed)
Patch Set: more changes Created 3 years, 5 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: milo/frontend/appengine/templates/pages/console.html
diff --git a/milo/frontend/appengine/templates/pages/console.html b/milo/frontend/appengine/templates/pages/console.html
index 3d64e0f42360deb38cbe9624390d8e3f7a954ee1..0163b50dbebb5cf8da0720c9e94e867347e065bf 100644
--- a/milo/frontend/appengine/templates/pages/console.html
+++ b/milo/frontend/appengine/templates/pages/console.html
@@ -9,25 +9,27 @@ th {
{{end}}
{{define "body"}}
-<h1>{{.Console.Name}}</h1>
+{{ $console := . }}
+
+<h1>{{ .Name }}</h1>
<table>
<thead>
- {{ .Console.BuilderRef | consoleHeader }}
+ {{ .Header }}
</thead>
-{{ range .Console.Commit }}
+{{ range .Commit }}
<tr>
<td>
- {{ .Commit.Revision }}
+ {{ .Revision }}
</td>
{{ range .Build }}
- <td {{ if . }}class="status-{{.Status.String}}"{{ end }}>
{{ if . }}
- {{ if .Link }}
- <a href="{{.Link.URL}}">x</a>
- {{ end }}
+ <td class="status-{{.Summary.Status.String}}">
+ {{ . | $console.BuilderLink | linkify }}
+ </td>
+ {{ else }}
+ <td></td>
{{ end }}
- </td>
{{ end }}
</tr>
{{ end }}

Powered by Google App Engine
This is Rietveld 408576698