2011-12-15 16:48:06 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Go Build Dashboard</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: sans-serif;
|
|
|
|
padding: 0; margin: 0;
|
|
|
|
}
|
|
|
|
h1, h2 {
|
2011-12-19 17:30:48 -07:00
|
|
|
margin: 0;
|
2011-12-15 16:48:06 -07:00
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
h1 {
|
2011-12-19 17:30:48 -07:00
|
|
|
background: #eee;
|
2011-12-15 16:48:06 -07:00
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
.build, .packages {
|
|
|
|
margin: 5px;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
.build td, .build th, .packages td, .packages th {
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 2px 4px;
|
|
|
|
font-size: 10pt;
|
|
|
|
}
|
|
|
|
.build tr:nth-child(2n) {
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
}
|
2011-12-18 22:57:25 -07:00
|
|
|
.build .hash {
|
2011-12-19 17:30:48 -07:00
|
|
|
font-family: monospace;
|
2011-12-20 17:08:47 -07:00
|
|
|
font-size: 9pt;
|
2011-12-18 22:57:25 -07:00
|
|
|
}
|
2011-12-15 16:48:06 -07:00
|
|
|
.build .result {
|
|
|
|
text-align: center;
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
.build .time {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
.build .descr, .build .time, .build .user {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.paginate {
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
.paginate a {
|
|
|
|
padding: 0.5em;
|
|
|
|
background: #eee;
|
|
|
|
color: blue;
|
|
|
|
}
|
|
|
|
.paginate a.inactive {
|
|
|
|
color: #999;
|
|
|
|
}
|
2011-12-19 17:30:48 -07:00
|
|
|
.fail {
|
|
|
|
color: #C00;
|
|
|
|
}
|
2011-12-15 16:48:06 -07:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>Go Build Status</h1>
|
|
|
|
|
|
|
|
{{if $.Commits}}
|
|
|
|
|
|
|
|
<table class="build">
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
{{range $.Builders}}
|
|
|
|
<th class="result">{{builderTitle .}}</th>
|
|
|
|
{{end}}
|
|
|
|
</tr>
|
|
|
|
{{range $c := $.Commits}}
|
|
|
|
<tr>
|
|
|
|
<td class="hash"><a href="{{repoURL .Hash ""}}">{{shortHash .Hash}}</a></td>
|
|
|
|
{{range $.Builders}}
|
|
|
|
<td class="result">
|
|
|
|
{{with $c.Result . ""}}
|
|
|
|
{{if .OK}}
|
|
|
|
<span class="ok">ok</span>
|
|
|
|
{{else}}
|
|
|
|
<a href="/log/{{.LogHash}}" class="fail">fail</a>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
{{end}}
|
2011-12-18 22:57:25 -07:00
|
|
|
<td class="user">{{shortUser .User}}</td>
|
2011-12-20 17:08:47 -07:00
|
|
|
<td class="time">{{.Time.Time.Format "Mon 02 Jan 15:04"}}</td>
|
2011-12-18 22:57:25 -07:00
|
|
|
<td class="desc">{{shortDesc .Desc}}</td>
|
2011-12-15 16:48:06 -07:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{with $.Pagination}}
|
|
|
|
<div class="paginate">
|
|
|
|
<a {{if .HasPrev}}href="?page={{.Prev}}"{{else}}class="inactive"{{end}}>prev</a>
|
|
|
|
<a {{if .Next}}href="?page={{.Next}}"{{else}}class="inactive"{{end}}>next</a>
|
|
|
|
<a {{if .HasPrev}}href="?page=0}"{{else}}class="inactive"{{end}}>top</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
<p>No commits to display. Hm.</p>
|
|
|
|
{{end}}
|
|
|
|
|
2011-12-20 17:08:47 -07:00
|
|
|
{{if $.TipState}}
|
2011-12-15 16:48:06 -07:00
|
|
|
<h2>Other packages</h2>
|
|
|
|
|
|
|
|
<table class="packages">
|
|
|
|
<tr>
|
|
|
|
<th>State</th>
|
|
|
|
<th>Package</th>
|
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
{{range $state := $.TipState}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{if .Results}}
|
|
|
|
<img src="/static/status_{{if .OK}}good{{else}}alert{{end}}.gif" />
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
<td><a title="{{.Package.Path}}">{{.Package.Name}}</a></td>
|
|
|
|
<td>
|
|
|
|
{{range .Results}}
|
|
|
|
<div>
|
|
|
|
{{$h := $state.Commit.Hash}}
|
|
|
|
<a href="{{repoURL $h $state.Commit.PackagePath}}">{{shortHash $h}}</a>
|
2011-12-19 17:30:48 -07:00
|
|
|
{{if .OK}}
|
|
|
|
ok
|
|
|
|
{{else}}
|
|
|
|
<a href="/log/{{.LogHash}}" class="fail">failed</a>
|
|
|
|
{{end}}
|
2011-12-15 16:48:06 -07:00
|
|
|
on {{.Builder}}/<a href="{{repoURL .GoHash ""}}">{{shortHash .GoHash}}</a>
|
|
|
|
</a></div>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
2011-12-20 17:08:47 -07:00
|
|
|
{{end}}
|
2011-12-15 16:48:06 -07:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|