]> source.dussan.org Git - gitblit.git/commitdiff
Fix commit log css for branch graphs
authorJames Moger <james.moger@gitblit.com>
Mon, 23 Sep 2013 13:52:48 +0000 (09:52 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 23 Sep 2013 13:52:48 +0000 (09:52 -0400)
src/main/java/com/gitblit/wicket/panels/LogPanel.java

index a8f3d556137ef1883a8ea0a1ea44fcbeef9f6321..a9f80db9db09d68d30c68a9d08b3d8ebe0b9e60b 100644 (file)
@@ -160,7 +160,9 @@ public class LogPanel extends BasePanel {
                                item.add(new BookmarkablePageLink<Void>("tree", TreePage.class, WicketUtils\r
                                                .newObjectParameter(repositoryName, entry.getName())));\r
 \r
-                               WicketUtils.setAlternatingBackground(item, counter);\r
+                               String clazz = counter % 2 == 0 ? "light commit" : "dark commit";\r
+                               WicketUtils.setCssClass(item, clazz);\r
+\r
                                counter++;\r
                        }\r
                };\r