From f762b160efd5cafd919a6fd7f9587f578eceb454 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Sun, 02 Oct 2011 16:59:44 -0400
Subject: [PATCH] Merge branch 'master' into rpc

---
 src/com/gitblit/wicket/WicketUtils.java |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/com/gitblit/wicket/WicketUtils.java b/src/com/gitblit/wicket/WicketUtils.java
index a6435d5..e5b7f69 100644
--- a/src/com/gitblit/wicket/WicketUtils.java
+++ b/src/com/gitblit/wicket/WicketUtils.java
@@ -88,13 +88,13 @@
 	public static void setTicketCssClass(Component container, String state) {
 		String css = null;
 		if (state.equals("open")) {
-			css = "bug_open";
+			css = "label important";
 		} else if (state.equals("hold")) {
-			css = "bug_hold";
+			css = "label warning";
 		} else if (state.equals("resolved")) {
-			css = "bug_resolved";
+			css = "label success";
 		} else if (state.equals("invalid")) {
-			css = "bug_invalid";
+			css = "label";
 		}
 		if (css != null) {
 			setCssClass(container, css);
@@ -102,7 +102,7 @@
 	}
 
 	public static void setAlternatingBackground(Component c, int i) {
-		String clazz = i % 2 == 0 ? "dark" : "light";
+		String clazz = i % 2 == 0 ? "light" : "dark";
 		setCssClass(c, clazz);
 	}
 
@@ -115,6 +115,7 @@
 	public static ContextImage getPullStatusImage(String wicketId, FederationPullStatus status) {
 		String filename = null;
 		switch (status) {
+		case MIRRORED:
 		case PULLED:
 			filename = "bullet_green.png";
 			break;
@@ -128,6 +129,7 @@
 			filename = "bullet_white.png";
 			break;
 		case PENDING:
+		case NOCHANGE:			
 		default:
 			filename = "bullet_black.png";
 		}
@@ -215,9 +217,9 @@
 		return new ContextRelativeResource(file);
 	}
 
-	public static String getHostURL(Request request) {
+	public static String getGitblitURL(Request request) {
 		HttpServletRequest req = ((WebRequest) request).getHttpServletRequest();
-		return HttpUtils.getHostURL(req);
+		return HttpUtils.getGitblitURL(req);
 	}
 
 	public static HeaderContributor syndicationDiscoveryLink(final String feedTitle,

--
Gitblit v1.9.1