From 9ae72a95a2eae7f5483b30bea627af8f2f2f8330 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 14 Mar 2012 16:20:29 -0400
Subject: [PATCH] Wrapped activity page charts with table due to GoogleCharts update :(
---
src/com/gitblit/models/SearchResult.java | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/com/gitblit/models/SearchResult.java b/src/com/gitblit/models/SearchResult.java
index 4a03a70..181eb0e 100644
--- a/src/com/gitblit/models/SearchResult.java
+++ b/src/com/gitblit/models/SearchResult.java
@@ -26,19 +26,41 @@
public String summary;
+ public String fragment;
+
public String repository;
+
+ public String branch;
- public String id;
+ public String commitId;
+
+ public String path;
+
+ public String issueId;
+ public List<String> tags;
+
public List<String> labels;
public ObjectType type;
public SearchResult() {
}
+
+ public String getId() {
+ switch (type) {
+ case blob:
+ return path;
+ case commit:
+ return commitId;
+ case issue:
+ return issueId;
+ }
+ return commitId;
+ }
@Override
public String toString() {
- return score + " : " + type.name() + " : " + repository + " : " + id;
+ return score + " : " + type.name() + " : " + repository + " : " + getId() + " (" + branch + ")";
}
}
\ No newline at end of file
--
Gitblit v1.9.1