1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -07:00

dashboard: display correct package build state

Includes some boring whitespace tweaks.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5492067
This commit is contained in:
Andrew Gerrand 2011-12-20 11:30:48 +11:00
parent a0bd46e70f
commit 7c94dc04a7

View File

@ -8,11 +8,11 @@
padding: 0; margin: 0;
}
h1, h2 {
margin: 0;
margin: 0;
padding: 5px;
}
h1 {
background: #eee;
background: #eee;
}
h2 {
margin-top: 10px;
@ -30,14 +30,14 @@
background-color: #f0f0f0;
}
.build .hash {
font-family: monospace;
font-family: monospace;
}
.build .result {
text-align: center;
width: 50px;
}
.build .time {
font-family: monospace;
font-family: monospace;
color: #666;
}
.build .descr, .build .time, .build .user {
@ -54,6 +54,9 @@
.paginate a.inactive {
color: #999;
}
.fail {
color: #C00;
}
</style>
</head>
<body>
@ -129,7 +132,11 @@
<div>
{{$h := $state.Commit.Hash}}
<a href="{{repoURL $h $state.Commit.PackagePath}}">{{shortHash $h}}</a>
<a href="/log/{{.LogHash}}">failed</a>
{{if .OK}}
ok
{{else}}
<a href="/log/{{.LogHash}}" class="fail">failed</a>
{{end}}
on {{.Builder}}/<a href="{{repoURL .GoHash ""}}">{{shortHash .GoHash}}</a>
</a></div>
{{end}}