From: James Moger Date: Sat, 3 Mar 2012 00:41:39 +0000 (-0500) Subject: Improved look of Lucene page X-Git-Tag: v0.9.0~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f0677744e5b0195e3c23de9c5fd94924bfb592e;p=gitblit.git Improved look of Lucene page --- 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())); }