{{template "header.html"}}

<h2>Build Scheduler Status</h2>
<build-scheduler-status-sk id="status_sk"></build-scheduler-status-sk>

<script>
// Add status information from the server to the build-scheduler-status-sk.
var elem = document.getElementById("status_sk");
elem.last_scheduled = {{.LastScheduled}};
elem.top_candidates = [
  {{range .TopCandidates}}
    {"Builder": "{{.Builder}}", "Commit": "{{.Commit}}", "Score": "{{.Score}}"},
  {{end}}
];

console.log(elem.last_scheduled);
console.log(elem.top_candidates);
</script>
{{template "footer.html"}}

{{template "header.html"}}

<h2>Build Scheduler Status</h2>
<build-scheduler-status-sk id="status_sk"></build-scheduler-status-sk>

<script>
// Add status information from the server to the build-scheduler-status-sk.
var elem = document.getElementById("status_sk");
elem.last_scheduled = {{.LastScheduled}};
elem.top_candidates = [
  {{range .TopCandidates}}
    {"Builder": "{{.Builder}}", "Commit": "{{.Commit.Hash}}", "Score": "{{.Score}}"},
  {{end}}
];

console.log(elem.last_scheduled);
console.log(elem.top_candidates);
</script>
{{template "footer.html"}}

Fix commit hashes on build scheduler UI
Fix commit hashes on build scheduler UI

BUG=skia:

Change-Id: I28b5144132c3265309d5007aeecfa976edc1b437
Reviewed-on: https://skia-review.googlesource.com/4521
Reviewed-by: Ben Wagner <3ef7217be91069877d94f7907ce5479000772cd3@google.com>
Commit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
