2013-07-31 21:23:51 -06:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-09-23 18:06:49 -06:00
|
|
|
<title>{{$.Dashboard.Name}} Build Dashboard</title>
|
2013-07-31 21:23:51 -06:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: sans-serif;
|
|
|
|
padding: 0; margin: 0;
|
|
|
|
}
|
|
|
|
h1, h2 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
background: #eee;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
.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.commit:nth-child(2n) {
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
}
|
|
|
|
.build .hash {
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 9pt;
|
|
|
|
}
|
|
|
|
.build .result {
|
|
|
|
text-align: center;
|
|
|
|
width: 2em;
|
|
|
|
}
|
|
|
|
.col-hash, .col-result {
|
|
|
|
border-right: solid 1px #ccc;
|
|
|
|
}
|
|
|
|
.build .arch {
|
|
|
|
font-size: 66%;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
.build .time {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
.build .ok {
|
|
|
|
font-size: 83%;
|
|
|
|
}
|
|
|
|
.build .desc, .build .time, .build .user {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2013-09-23 18:06:49 -06:00
|
|
|
.dashboards, .paginate {
|
2013-07-31 21:23:51 -06:00
|
|
|
padding: 0.5em;
|
|
|
|
}
|
2014-03-30 15:54:14 -06:00
|
|
|
.dashboards > a, .paginate a {
|
2013-07-31 21:23:51 -06:00
|
|
|
padding: 0.5em;
|
|
|
|
background: #eee;
|
|
|
|
color: blue;
|
|
|
|
}
|
|
|
|
.paginate a.inactive {
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
.fail {
|
|
|
|
color: #C00;
|
|
|
|
}
|
|
|
|
</style>
|
2014-03-30 15:54:14 -06:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
|
|
|
<script>
|
|
|
|
var showUnsupported = window.location.hash.substr(1) != "short";
|
|
|
|
function redraw() {
|
|
|
|
showUnsupported = !$("#showshort").prop('checked');
|
|
|
|
$('.unsupported')[showUnsupported?'show':'hide']();
|
|
|
|
window.location.hash = showUnsupported?'':'short';
|
|
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#showshort").attr('checked', !showUnsupported).change(redraw);
|
|
|
|
redraw();
|
|
|
|
})
|
|
|
|
</script>
|
2013-07-31 21:23:51 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
2013-09-23 18:06:49 -06:00
|
|
|
<h1>{{$.Dashboard.Name}} Build Status</h1>
|
|
|
|
<nav class="dashboards">
|
|
|
|
{{range buildDashboards}}
|
|
|
|
<a href="{{.RelPath}}">{{.Name}}</a>
|
|
|
|
{{end}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<label>
|
|
|
|
<input type=checkbox id="showshort">
|
|
|
|
show only <a href="http://golang.org/wiki/PortingPolicy">first-class ports</a>
|
|
|
|
</label>
|
2013-09-23 18:06:49 -06:00
|
|
|
</nav>
|
2014-01-27 20:30:48 -07:00
|
|
|
{{with $.Package.Name}}<h2>{{.}}</h2>{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
|
|
|
|
{{if $.Commits}}
|
|
|
|
|
|
|
|
<table class="build">
|
2014-01-27 20:30:48 -07:00
|
|
|
<colgroup class="col-hash" {{if $.Package.Path}}span="2"{{end}}></colgroup>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{range $.Builders | builderSpans}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<colgroup class="col-result{{if (unsupportedOS .OS)}} unsupported{{end}}" span="{{.N}}"></colgroup>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
<colgroup class="col-user"></colgroup>
|
|
|
|
<colgroup class="col-time"></colgroup>
|
|
|
|
<colgroup class="col-desc"></colgroup>
|
|
|
|
<tr>
|
|
|
|
<!-- extra row to make alternating colors use dark for first result -->
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-01-27 20:30:48 -07:00
|
|
|
{{if $.Package.Path}}
|
|
|
|
<th colspan="2">revision</th>
|
|
|
|
{{else}}
|
2013-07-31 21:23:51 -06:00
|
|
|
<th> </th>
|
2014-01-27 20:30:48 -07:00
|
|
|
{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
{{range $.Builders | builderSpans}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<th {{if (unsupportedOS .OS)}}class="unsupported"{{end}} colspan="{{.N}}">{{.OS}}</th>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-01-27 20:30:48 -07:00
|
|
|
{{if $.Package.Path}}
|
|
|
|
<th class="result arch">repo</th>
|
|
|
|
<th class="result arch">{{$.Dashboard.Name}}</th>
|
|
|
|
{{else}}
|
2013-07-31 21:23:51 -06:00
|
|
|
<th> </th>
|
2014-01-27 20:30:48 -07:00
|
|
|
{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
{{range $.Builders}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<th class="result arch{{if (unsupportedOS (builderOS .))}} unsupported{{end}}" title="{{.}}">{{builderSubheading .}}</th>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
2013-07-31 21:23:51 -06:00
|
|
|
</tr>
|
|
|
|
{{range $c := $.Commits}}
|
2014-01-27 20:30:48 -07:00
|
|
|
{{range $i, $h := $c.ResultGoHashes}}
|
|
|
|
<tr class="commit">
|
|
|
|
{{if $i}}
|
|
|
|
<td> </td>
|
|
|
|
{{else}}
|
|
|
|
<td class="hash"><a href="{{repoURL $.Dashboard.Name $c.Hash $.Package.Path}}">{{shortHash $c.Hash}}</a></td>
|
|
|
|
{{end}}
|
|
|
|
{{if $h}}
|
|
|
|
<td class="hash"><a href="{{repoURL $.Dashboard.Name $h ""}}">{{shortHash $h}}</a></td>
|
|
|
|
{{end}}
|
|
|
|
{{range $.Builders}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<td class="result{{if (unsupportedOS (builderOS .))}} unsupported{{end}}">
|
2014-01-27 20:30:48 -07:00
|
|
|
{{with $c.Result . $h}}
|
|
|
|
{{if .OK}}
|
|
|
|
<span class="ok">ok</span>
|
|
|
|
{{else}}
|
|
|
|
<a href="{{$.Dashboard.RelPath}}log/{{.LogHash}}" class="fail">fail</a>
|
|
|
|
{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
{{else}}
|
2014-01-27 20:30:48 -07:00
|
|
|
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
2014-01-27 20:30:48 -07:00
|
|
|
</td>
|
|
|
|
{{end}}
|
|
|
|
{{if $i}}
|
|
|
|
<td> </td>
|
|
|
|
<td> </td>
|
|
|
|
<td> </td>
|
|
|
|
{{else}}
|
|
|
|
<td class="user" title="{{$c.User}}">{{shortUser $c.User}}</td>
|
|
|
|
<td class="time">{{$c.Time.Format "Mon 02 Jan 15:04"}}</td>
|
|
|
|
<td class="desc" title="{{$c.Desc}}">{{shortDesc $c.Desc}}</td>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
2014-01-27 20:30:48 -07:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{with $.Pagination}}
|
|
|
|
<div class="paginate">
|
2014-01-27 20:30:48 -07:00
|
|
|
<a {{if .HasPrev}}href="?{{with $.Package.Path}}repo={{.}}&{{end}}page={{.Prev}}"{{else}}class="inactive"{{end}}>newer</a>
|
|
|
|
<a {{if .Next}}href="?{{with $.Package.Path}}repo={{.}}&{{end}}page={{.Next}}"{{else}}class="inactive"{{end}}>older</a>
|
2013-07-31 21:23:51 -06:00
|
|
|
<a {{if .HasPrev}}href="."{{else}}class="inactive"{{end}}>latest</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
<p>No commits to display. Hm.</p>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{with $.TipState}}
|
|
|
|
{{$goHash := .Tag.Hash}}
|
2013-09-23 18:06:49 -06:00
|
|
|
{{if .Packages}}
|
|
|
|
<h2>
|
|
|
|
Sub-repositories at tip
|
2013-10-02 16:55:44 -06:00
|
|
|
<small>(<a href="{{repoURL $.Dashboard.Name .Tag.Hash ""}}">{{shortHash .Tag.Hash}}</a>)</small>
|
2013-09-23 18:06:49 -06:00
|
|
|
</h2>
|
2013-07-31 21:23:51 -06:00
|
|
|
|
2013-09-23 18:06:49 -06:00
|
|
|
<table class="build">
|
2013-07-31 21:23:51 -06:00
|
|
|
<colgroup class="col-package"></colgroup>
|
|
|
|
<colgroup class="col-hash"></colgroup>
|
|
|
|
{{range $.Builders | builderSpans}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<colgroup class="col-result{{if (unsupportedOS .OS)}} unsupported{{end}}" span="{{.N}}"></colgroup>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
<colgroup class="col-user"></colgroup>
|
|
|
|
<colgroup class="col-time"></colgroup>
|
|
|
|
<colgroup class="col-desc"></colgroup>
|
|
|
|
<tr>
|
|
|
|
<!-- extra row to make alternating colors use dark for first result -->
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
{{range $.Builders | builderSpans}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<th {{if (unsupportedOS .OS)}}class="unsupported"{{end}} colspan="{{.N}}">{{.OS}}</th>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
{{range $.Builders}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<th class="result arch{{if (unsupportedOS (builderOS .))}} unsupported{{end}}" title="{{.}}">{{builderSubheading .}}</th>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
{{range $pkg := .Packages}}
|
|
|
|
<tr class="commit">
|
2014-01-27 20:30:48 -07:00
|
|
|
<td><a title="{{.Package.Path}}" href="?repo={{.Package.Path}}">{{.Package.Name}}</a></td>
|
2013-07-31 21:23:51 -06:00
|
|
|
<td class="hash">
|
|
|
|
{{$h := $pkg.Commit.Hash}}
|
2013-10-02 16:55:44 -06:00
|
|
|
<a href="{{repoURL $.Dashboard.Name $h $pkg.Commit.PackagePath}}">{{shortHash $h}}</a>
|
2013-07-31 21:23:51 -06:00
|
|
|
</td>
|
|
|
|
{{range $.Builders}}
|
2014-03-30 15:54:14 -06:00
|
|
|
<td class="result{{if (unsupportedOS (builderOS .))}} unsupported{{end}}">
|
2013-07-31 21:23:51 -06:00
|
|
|
{{with $pkg.Commit.Result . $goHash}}
|
|
|
|
{{if .OK}}
|
|
|
|
<span class="ok">ok</span>
|
|
|
|
{{else}}
|
2013-10-02 16:55:44 -06:00
|
|
|
<a href="{{$.Dashboard.RelPath}}log/{{.LogHash}}" class="fail">fail</a>
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
{{end}}
|
|
|
|
{{with $pkg.Commit}}
|
|
|
|
<td class="user" title="{{.User}}">{{shortUser .User}}</td>
|
|
|
|
<td class="time">{{.Time.Format "Mon 02 Jan 15:04"}}</td>
|
|
|
|
<td class="desc" title="{{.Desc}}">{{shortDesc .Desc}}</td>
|
|
|
|
{{end}}
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
2013-09-23 18:06:49 -06:00
|
|
|
{{end}}
|
2013-07-31 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|