From 4cac0d3a0952078ce8ebd3fdedbefeb7803ac080 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Fri, 28 Oct 2011 21:24:02 -0400
Subject: [PATCH] Added basic rss subscriptions to Manager

---
 src/com/gitblit/client/Utils.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/com/gitblit/client/Utils.java b/src/com/gitblit/client/Utils.java
index 786eb9f..1f44c32 100644
--- a/src/com/gitblit/client/Utils.java
+++ b/src/com/gitblit/client/Utils.java
@@ -36,15 +36,19 @@
 import com.gitblit.Constants.RpcRequest;
 
 public class Utils {
+	
+	public final static String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm";
+	
+	public final static String DATE_FORMAT = "yyyy-MM-dd";
 
-	public static JTable newTable(TableModel model) {
+	public static JTable newTable(TableModel model, String datePattern) {
 		JTable table = new JTable(model);
 		table.setCellSelectionEnabled(false);
 		table.setRowSelectionAllowed(true);
 		table.getTableHeader().setReorderingAllowed(false);
 		table.setGridColor(new Color(0xd9d9d9));
 		table.setBackground(Color.white);
-		table.setDefaultRenderer(Date.class, new DateCellRenderer(null, Color.orange.darker()));
+		table.setDefaultRenderer(Date.class, new DateCellRenderer(datePattern, Color.orange.darker()));
 		return table;
 	}
 

--
Gitblit v1.9.1