2014-05-13 01:01:50 -06:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{{$.Dashboard.Name}} Dashboard</title>
|
|
|
|
<link rel="stylesheet" href="/static/style.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header id="topbar">
|
|
|
|
<h1>Go Dashboard</h1>
|
|
|
|
<nav>
|
2014-12-03 16:45:11 -07:00
|
|
|
<a href="{{$.Dashboard.Prefix}}/">Test</a>
|
|
|
|
<a href="{{$.Dashboard.Prefix}}/perf">Perf</a>
|
|
|
|
<a href="{{$.Dashboard.Prefix}}/perfgraph">Graphs</a>
|
2014-05-13 01:01:50 -06:00
|
|
|
</nav>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="page">
|
|
|
|
<div class="build-container">
|
|
|
|
<table class="build">
|
|
|
|
<colgroup class="col-hash"></colgroup>
|
|
|
|
<colgroup class="col-numresults"></colgroup>
|
|
|
|
<colgroup class="col-metric"></colgroup>
|
|
|
|
<colgroup class="col-result"></colgroup>
|
|
|
|
<colgroup class="col-result"></colgroup>
|
|
|
|
<colgroup class="col-user"></colgroup>
|
|
|
|
<colgroup class="col-time"></colgroup>
|
|
|
|
<colgroup class="col-desc"></colgroup>
|
|
|
|
<tbody>
|
|
|
|
{{range $c := $.Commits}}
|
|
|
|
{{range $m := $c.Metrics}}
|
|
|
|
{{if $m.First}}
|
|
|
|
<tr class="row-commit">
|
|
|
|
{{if $c.IsSummary}}
|
|
|
|
<td class="hash">tip vs {{$c.ParentHash}}</td>
|
|
|
|
{{else}}
|
|
|
|
<td class="hash"><a href="{{repoURL $.Dashboard.Name $c.Hash ""}}">{{shortHash $c.Hash}}</a></td>
|
|
|
|
{{end}}
|
|
|
|
<td class="numresults">{{$c.NumResults}}</td>
|
|
|
|
{{else}}
|
|
|
|
<tr>
|
|
|
|
<td class="user"> </td>
|
|
|
|
<td class="numresults"> </td>
|
|
|
|
{{end}}
|
|
|
|
<td>{{$m.Name}}</td>
|
|
|
|
<td>
|
|
|
|
{{range $ch := $m.BadChanges}}
|
|
|
|
<a class="{{$ch.Style}}" href="{{$ch.Link}}" title="{{$ch.Hint}}">{{$ch.Val}}</a>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{range $ch := $m.GoodChanges}}
|
|
|
|
<a class="{{$ch.Style}}" href="{{$ch.Link}}" title="{{$ch.Hint}}">{{$ch.Val}}</a>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
{{if $m.First}}
|
|
|
|
<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>
|
|
|
|
{{else}}
|
|
|
|
<td class="user"> </td>
|
|
|
|
<td class="time"> </td>
|
|
|
|
<td class="desc"> </td>
|
|
|
|
{{end}}
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{if $c.IsSummary}}
|
|
|
|
<tr class="row-commit"><td>---</td></tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{with $.Pagination}}
|
|
|
|
<div class="paginate">
|
|
|
|
<nav>
|
|
|
|
<a {{if .HasPrev}}href="?page={{.Prev}}"{{else}}class="inactive"{{end}}>newer</a>
|
|
|
|
<a {{if .Next}}href="?page={{.Next}}"{{else}}class="inactive"{{end}}>older</a>
|
2014-10-17 02:17:35 -06:00
|
|
|
<a {{if .HasPrev}}href="?"{{else}}class="inactive"{{end}}>latest</a>
|
2015-01-02 01:56:34 -07:00
|
|
|
<a href="https://golang.org/wiki/PerfDashboard">Help</a>
|
2014-05-13 01:01:50 -06:00
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|