From 3f0677744e5b0195e3c23de9c5fd94924bfb592e Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 2 Mar 2012 19:41:39 -0500 Subject: [PATCH] Improved look of Lucene page --- resources/gitblit.css | 8 ++++++++ src/com/gitblit/wicket/pages/LucenePage.html | 4 ++-- src/com/gitblit/wicket/pages/LucenePage.java | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index bfa1c202..8f659865 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -278,6 +278,14 @@ div.searchResult .branch { color: #008000; } +div.searchResult .author { + font-style: italic !important; +} + +div.searchResult .date { + color:#999; +} + div.header, div.commitHeader, table.repositories th { background-color:#e0e0e0; background-repeat:repeat-x; diff --git a/src/com/gitblit/wicket/pages/LucenePage.html b/src/com/gitblit/wicket/pages/LucenePage.html index a3b01727..867e607b 100644 --- a/src/com/gitblit/wicket/pages/LucenePage.html +++ b/src/com/gitblit/wicket/pages/LucenePage.html @@ -14,8 +14,8 @@
- : - + committed to :
+
diff --git a/src/com/gitblit/wicket/pages/LucenePage.java b/src/com/gitblit/wicket/pages/LucenePage.java index 75df3145..47f731c2 100644 --- a/src/com/gitblit/wicket/pages/LucenePage.java +++ b/src/com/gitblit/wicket/pages/LucenePage.java @@ -26,11 +26,13 @@ import org.apache.wicket.markup.repeater.Item; import org.apache.wicket.markup.repeater.data.DataView; import org.apache.wicket.markup.repeater.data.ListDataProvider; import org.apache.wicket.model.Model; +import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.Repository; import com.gitblit.GitBlit; import com.gitblit.models.SearchResult; import com.gitblit.utils.LuceneUtils; +import com.gitblit.utils.StringUtils; import com.gitblit.wicket.WicketUtils; import com.gitblit.wicket.panels.LinkPanel; @@ -77,8 +79,8 @@ public class LucenePage extends RootPage { break; } } - item.add(new Label("repository", sr.repository)); - item.add(new Label("branch", sr.branch)); + item.add(new LinkPanel("repository", null, sr.repository, SummaryPage.class, WicketUtils.newRepositoryParameter(sr.repository))); + item.add(new LinkPanel("branch", "branch", StringUtils.getRelativePath(Constants.R_HEADS, sr.branch), LogPage.class, WicketUtils.newObjectParameter(sr.repository, sr.branch))); item.add(new Label("author", sr.author)); item.add(WicketUtils.createTimestampLabel("date", sr.date, getTimeZone())); } -- 2.39.5