summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-09-23 09:52:48 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-23 09:52:48 -0400
commitb932aab97767f8bec43908497646054c81bf9c86 (patch)
tree27c0312e2bece4839bb7a7de0467cbd7a91213f3 /src/main/java
parent36491b1c8bb52262fbf276e3a1f5951fde5c091d (diff)
downloadgitblit-b932aab97767f8bec43908497646054c81bf9c86.tar.gz
gitblit-b932aab97767f8bec43908497646054c81bf9c86.zip
Fix commit log css for branch graphs
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/LogPanel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/LogPanel.java b/src/main/java/com/gitblit/wicket/panels/LogPanel.java
index a8f3d556..a9f80db9 100644
--- a/src/main/java/com/gitblit/wicket/panels/LogPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/LogPanel.java
@@ -160,7 +160,9 @@ public class LogPanel extends BasePanel {
item.add(new BookmarkablePageLink<Void>("tree", TreePage.class, WicketUtils
.newObjectParameter(repositoryName, entry.getName())));
- WicketUtils.setAlternatingBackground(item, counter);
+ String clazz = counter % 2 == 0 ? "light commit" : "dark commit";
+ WicketUtils.setCssClass(item, clazz);
+
counter++;
}
};