| // Copyright 2015 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| "golang.org/x/build/dashboard" |
| func handleBuilders(w http.ResponseWriter, r *http.Request) { |
| if err := buildersTmpl.Execute(&buf, dashboard.Builders); err != nil { |
| http.Error(w, err.Error(), http.StatusInternalServerError) |
| var buildersTmpl = template.Must(template.New("builders").Parse(` |
| <head><link rel="stylesheet" href="/style.css"/><title>Go Farmer</title></head> |
| <h1>Go Build Coordinator</h1> |
| <a href="http://build.golang.org">Dashboard</a> |
| <a href="/builders">Builders</a> |
| <div class="clear"></div> |
| <h2>Defined Builders</h2> |
| <thead><tr><th>name</th><th>pool</th><th>owner</th><th>notes</th></tr> |
| <td>{{if .IsReverse}}Reverse{{else}}GCE{{end}}</td> |