mirror of
https://github.com/golang/go
synced 2024-11-19 05:24:42 -07:00
2d83fa5bf1
This adds a "Git" dashboard at "/git/", which has its own namespace for datastore and memcache. Once we have pushed out the new git repositories we will spin up a commit watcher and builders that point to the Git dashboard. Once we are ready to switch the dashboard over to the new Git builders, the (*Dashboard).Context method will be changed to return "Git" as the default namespace. The old builders will be retired, and the new builders will be configured to report to "/" instead of "/git/". At that point all our old data will still be available in the default namespace, but hidden from view. LGTM=dsymonds, cmang R=bradfitz, cmang, dsymonds, adg CC=golang-codereviews https://golang.org/cl/183050043
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://code.google.com/p/go-wiki/wiki/PerfDashboard">Help</a>
|
|
</nav>
|
|
</div>
|
|
{{end}}
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|