mirror of
https://github.com/golang/go
synced 2024-11-19 00:14:39 -07:00
faf0ad1ad3
The Go wiki has moved to GitHub. Update links to use a golang.org/wiki/... target. Change-Id: Iff7e1b2add469318f5e467aed5d1f3e67155b283 Reviewed-on: https://go-review.googlesource.com/2250 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
90 lines
3.0 KiB
HTML
90 lines
3.0 KiB
HTML
<!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>
|
|
<a href="{{$.Dashboard.Prefix}}/">Test</a>
|
|
<a href="{{$.Dashboard.Prefix}}/perf">Perf</a>
|
|
<a href="{{$.Dashboard.Prefix}}/perfgraph">Graphs</a>
|
|
</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>
|
|
<a {{if .HasPrev}}href="?"{{else}}class="inactive"{{end}}>latest</a>
|
|
<a href="https://golang.org/wiki/PerfDashboard">Help</a>
|
|
</nav>
|
|
</div>
|
|
{{end}}
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|