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>
[% odd = 0 %]
[% FOREACH pkg IN nixPkgs %]
[% build = pkg.build %]
[% 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="[% uri %]"><tt>[% build.resultInfo.releasename || build.nixname %]</tt></a></td>
<td><tt>[% build.system %]</tt></td>

View file

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

View file

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