]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: display correct package build state
authorAndrew Gerrand <adg@golang.org>
Tue, 20 Dec 2011 00:30:48 +0000 (11:30 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 20 Dec 2011 00:30:48 +0000 (11:30 +1100)
Includes some boring whitespace tweaks.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5492067

misc/dashboard/app/build/ui.html

index 80a924bfca41af8fa11d4e28746d523db600bbc8..66b7df255a32d237c4144e5287fff8c59ee4845a 100644 (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;
         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>
         <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}}