}\r
\r
public static Label createDateLabel(String wicketId, Date date, TimeZone timeZone, TimeUtils timeUtils) {\r
+ return createDateLabel(wicketId, date, timeZone, timeUtils, true);\r
+ }\r
+ \r
+ public static Label createDateLabel(String wicketId, Date date, TimeZone timeZone, TimeUtils timeUtils, boolean setCss) {\r
String format = GitBlit.getString(Keys.web.datestampShortFormat, "MM/dd/yy");\r
DateFormat df = new SimpleDateFormat(format);\r
if (timeZone == null) {\r
title = tmp;\r
}\r
Label label = new Label(wicketId, dateString);\r
- WicketUtils.setCssClass(label, timeUtils.timeAgoCss(date));\r
+ if (setCss) {\r
+ WicketUtils.setCssClass(label, timeUtils.timeAgoCss(date));\r
+ }\r
if (!StringUtils.isEmpty(title)) {\r
WicketUtils.setHtmlTooltip(label, title);\r
}\r