From 07e1d736025d068373b23a5ac972a3c2b9f1a1d8 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra
Date: Wed, 4 Mar 2009 15:41:37 +0000
Subject: [PATCH]
---
src/Hydra/root/channel-contents.tt | 4 +++-
src/Hydra/root/common.tt | 8 ++++++--
src/Hydra/root/static/css/hydra.css | 4 ++++
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/Hydra/root/channel-contents.tt b/src/Hydra/root/channel-contents.tt
index a2c81706..90936a16 100644
--- a/src/Hydra/root/channel-contents.tt
+++ b/src/Hydra/root/channel-contents.tt
@@ -47,12 +47,14 @@ install the package simply by clicking on the packages below.
+ [% odd = 0 %]
+
[% FOREACH pkg IN nixPkgs %]
[% build = pkg.build %]
[% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %]
-
+
[% build.id %] |
[% build.resultInfo.releasename || build.nixname %] |
[% build.system %] |
diff --git a/src/Hydra/root/common.tt b/src/Hydra/root/common.tt
index 435651f6..0d325194 100644
--- a/src/Hydra/root/common.tt
+++ b/src/Hydra/root/common.tt
@@ -38,9 +38,13 @@
+ [% odd = 0 %]
[% FOREACH build IN builds -%]
-
[% IF !hideResultInfo %]
diff --git a/src/Hydra/root/static/css/hydra.css b/src/Hydra/root/static/css/hydra.css
index bd269071..c10efb86 100644
--- a/src/Hydra/root/static/css/hydra.css
+++ b/src/Hydra/root/static/css/hydra.css
@@ -34,6 +34,10 @@ tr.clickable:hover {
cursor: pointer;
}
+tr.odd {
+ background: #f4f4f4;
+}
+
.layoutTable td, .layoutTable th {
border-style: none;
}