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 | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/com/gitblit/models/SearchResult.java b/src/com/gitblit/models/SearchResult.java index 44207f0..181eb0e 100644 --- a/src/com/gitblit/models/SearchResult.java +++ b/src/com/gitblit/models/SearchResult.java @@ -25,18 +25,42 @@ public String committer; 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 type.name() + ": " + id; + return score + " : " + type.name() + " : " + repository + " : " + getId() + " (" + branch + ")"; } } \ No newline at end of file -- Gitblit v1.9.1