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>
|
2014-05-13 01:01:50 -06:00
|
|
|
<link rel="stylesheet" href="/static/style.css"/>
|
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>
|
2014-05-13 01:01:50 -06:00
|
|
|
|
2013-07-31 21:23:51 -06:00
|
|
|
<body>
|
2014-05-13 01:01:50 -06:00
|
|
|
<header id="topbar">
|
|
|
|
<h1>Go Dashboard</h1>
|
|
|
|
<nav>
|
|
|
|
<a href="{{$.Dashboard.RelPath}}">Test</a>
|
|
|
|
<a href="{{$.Dashboard.RelPath}}perf">Perf</a>
|
|
|
|
<a href="{{$.Dashboard.RelPath}}perfgraph">Graphs</a>
|
|
|
|
</nav>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</header>
|
|
|
|
|
2013-09-23 18:06:49 -06:00
|
|
|
<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
|
|
|
|
2014-05-13 01:01:50 -06:00
|
|
|
<div class="page">
|
|
|
|
|
|
|
|
{{if $.Commits}}
|
2013-07-31 21:23:51 -06:00
|
|
|
|
|
|
|
<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-08-19 04:43:50 -06:00
|
|
|
<nav>
|
|
|
|
<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>
|
|
|
|
<a {{if .HasPrev}}href="."{{else}}class="inactive"{{end}}>latest</a>
|
|
|
|
</nav>
|
2013-07-31 21:23:51 -06:00
|
|
|
</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}}
|
|
|
|
|
2014-05-13 01:01:50 -06:00
|
|
|
</div>
|
2013-07-31 21:23:51 -06:00
|
|
|
</body>
|
|
|
|
</html>
|