This commit is contained in:
Eelco Dolstra 2009-03-04 15:41:37 +00:00
parent b7892f598d
commit 07e1d73602
3 changed files with 13 additions and 3 deletions

View file

@ -47,12 +47,14 @@ install the package simply by clicking on the packages below.</p>
<tbody> <tbody>
[% odd = 0 %]
[% FOREACH pkg IN nixPkgs %] [% FOREACH pkg IN nixPkgs %]
[% build = pkg.build %] [% build = pkg.build %]
[% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %] [% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %]
<tr class="clickable" onclick="window.location = '[% uri %]'"> <tr class="clickable [% IF odd %] odd [% END; odd = !odd %]" onclick="window.location = '[% uri %]'">
<td><a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a></td> <td><a href="[% c.uri_for('/build' build.id) %]">[% build.id %]</a></td>
<td><a href="[% uri %]"><tt>[% build.resultInfo.releasename || build.nixname %]</tt></a></td> <td><a href="[% uri %]"><tt>[% build.resultInfo.releasename || build.nixname %]</tt></a></td>
<td><tt>[% build.system %]</tt></td> <td><tt>[% build.system %]</tt></td>

View file

@ -38,9 +38,13 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
[% odd = 0 %]
[% FOREACH build IN builds -%] [% FOREACH build IN builds -%]
<tr class="clickable [% IF showSchedulingInfo -%] <tr class="clickable
[% IF build.schedulingInfo.busy %]runningBuild[% END %] [% IF build.schedulingInfo.disabled == 1 || build.project.enabled == 0 %]disabledBuild[% END -%] [% IF showSchedulingInfo -%]
[% IF build.schedulingInfo.busy %]runningBuild[% END %] [% IF build.schedulingInfo.disabled == 1 || build.project.enabled == 0 %]disabledBuild[% END -%]
[% ELSE -%]
[% IF odd %] odd [% END; odd = !odd -%]
[% END %]" [% END %]"
onclick="window.location = '[% c.uri_for('/build' build.id) %]'"> onclick="window.location = '[% c.uri_for('/build' build.id) %]'">
[% IF !hideResultInfo %] [% IF !hideResultInfo %]

View file

@ -34,6 +34,10 @@ tr.clickable:hover {
cursor: pointer; cursor: pointer;
} }
tr.odd {
background: #f4f4f4;
}
.layoutTable td, .layoutTable th { .layoutTable td, .layoutTable th {
border-style: none; border-style: none;
} }