summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-02 23:29:02 +0000
committerGodin <mandrikov@gmail.com>2010-12-02 23:29:02 +0000
commit3be4324b27a469c87fa619ed7952063dbe759641 (patch)
tree0bfb710c8549f6356001b541d5a16be49757f021
parent3a166b9c5b1f28adc637b40ad0d9b9969e1e6a5c (diff)
downloadsonarqube-3be4324b27a469c87fa619ed7952063dbe759641.tar.gz
sonarqube-3be4324b27a469c87fa619ed7952063dbe759641.zip
SONAR-1450: Show only date for violation in UI
-rw-r--r--plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsPanel.java2
-rw-r--r--sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java7
2 files changed, 1 insertions, 8 deletions
diff --git a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsPanel.java b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsPanel.java
index fc911727fa8..772325dfa83 100644
--- a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsPanel.java
+++ b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsPanel.java
@@ -140,7 +140,7 @@ public class ViolationsPanel extends SourcePanel {
@Override
public String getColumn4() {
return "<div class=\"warn\">" + Icons.forPriority(violation.getPriority()).getHTML() + "</img> "
- + Utils.formatDateTime(violation.getCreatedAt())
+ + Utils.formatDate(violation.getCreatedAt())
+ " <a href=\"" + Links.urlForRule(violation.getRuleKey(), false)
+ "\" onclick=\"window.open(this.href,'rule','height=800,width=900,scrollbars=1,resizable=1');return false;\" title=\""
+ violation.getRuleKey() + "\"><b>"
diff --git a/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java b/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java
index d2a0f877944..ab28ae0ce2f 100644
--- a/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java
+++ b/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java
@@ -68,13 +68,6 @@ public final class Utils {
public static String formatDate(Date date) {
return date == null ? "" : DateTimeFormat.getShortDateFormat().format(date);
}
-
- /**
- * @since 2.5
- */
- public static String formatDateTime(Date date) {
- return date == null ? "" : DateTimeFormat.getShortDateTimeFormat().format(date);
- }
public static native void showError(String message) /*-{
$wnd.error(message);