From 7203a415392b5372c0866991f1c2810eb5e3527a Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 18 Apr 2011 17:50:31 -0400 Subject: [PATCH] Add search form to the page nav links panel within a repository. --- src/com/gitblit/utils/JGitUtils.java | 4 +++ src/com/gitblit/wicket/GitBlitWebApp.java | 7 ---- src/com/gitblit/wicket/pages/SummaryPage.html | 2 +- .../gitblit/wicket/panels/PageLinksPanel.html | 17 +++++++-- .../gitblit/wicket/panels/PageLinksPanel.java | 36 +++++++++++++++++++ src/com/gitblit/wicket/resources/gitblit.css | 13 ++++++- 6 files changed, 67 insertions(+), 12 deletions(-) diff --git a/src/com/gitblit/utils/JGitUtils.java b/src/com/gitblit/utils/JGitUtils.java index 3b69c225..49fbf1ef 100644 --- a/src/com/gitblit/utils/JGitUtils.java +++ b/src/com/gitblit/utils/JGitUtils.java @@ -519,6 +519,10 @@ public class JGitUtils { } return null; } + + public String toString() { + return name().toLowerCase(); + } } public static List searchRevlogs(Repository r, String objectId, String value, final SearchType type, int offset, int maxCount) { diff --git a/src/com/gitblit/wicket/GitBlitWebApp.java b/src/com/gitblit/wicket/GitBlitWebApp.java index dc1e2c9c..106981e3 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.java +++ b/src/com/gitblit/wicket/GitBlitWebApp.java @@ -6,8 +6,6 @@ import org.apache.wicket.Request; import org.apache.wicket.Response; import org.apache.wicket.Session; import org.apache.wicket.protocol.http.WebApplication; -import org.apache.wicket.protocol.http.request.urlcompressing.UrlCompressingWebRequestProcessor; -import org.apache.wicket.request.IRequestCycleProcessor; import org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy; import com.gitblit.GitBlit; @@ -86,11 +84,6 @@ public class GitBlitWebApp extends WebApplication { return new GitBlitWebSession(request); } - @Override - protected final IRequestCycleProcessor newRequestCycleProcessor() { - return new UrlCompressingWebRequestProcessor(); - } - @Override public final String getConfigurationType() { if (GitBlit.self().isDebugMode()) diff --git a/src/com/gitblit/wicket/pages/SummaryPage.html b/src/com/gitblit/wicket/pages/SummaryPage.html index 7075bd2c..47c10b31 100644 --- a/src/com/gitblit/wicket/pages/SummaryPage.html +++ b/src/com/gitblit/wicket/pages/SummaryPage.html @@ -10,7 +10,7 @@
[page links]
-
+
diff --git a/src/com/gitblit/wicket/panels/PageLinksPanel.html b/src/com/gitblit/wicket/panels/PageLinksPanel.html index f2e4d316..40ec634f 100644 --- a/src/com/gitblit/wicket/panels/PageLinksPanel.html +++ b/src/com/gitblit/wicket/panels/PageLinksPanel.html @@ -5,9 +5,20 @@ lang="en"> - -