color: #008000;\r
}\r
\r
+div.searchResult .author {\r
+ font-style: italic !important;\r
+}\r
+\r
+div.searchResult .date {\r
+ color:#999;\r
+}\r
+\r
div.header, div.commitHeader, table.repositories th {\r
background-color:#e0e0e0;\r
background-repeat:repeat-x;\r
</form>\r
<div class="searchResult" wicket:id="searchResults">\r
<div><i wicket:id="type"></i><span class="summary" wicket:id="summary"></span></div>\r
- <span class="repository" wicket:id="repository"></span>:<span class="branch" wicket:id="branch"></span>\r
- <span wicket:id="author"></span> <span wicket:id="date"></span>\r
+ <span class="author" wicket:id="author"></span> committed to <span class="repository" wicket:id="repository"></span>:<span class="branch" wicket:id="branch"></span><br/>\r
+ <span class="date" wicket:id="date"></span>\r
</div>\r
</wicket:extend>\r
</body>\r
import org.apache.wicket.markup.repeater.data.DataView;\r
import org.apache.wicket.markup.repeater.data.ListDataProvider;\r
import org.apache.wicket.model.Model;\r
+import org.eclipse.jgit.lib.Constants;\r
import org.eclipse.jgit.lib.Repository;\r
\r
import com.gitblit.GitBlit;\r
import com.gitblit.models.SearchResult;\r
import com.gitblit.utils.LuceneUtils;\r
+import com.gitblit.utils.StringUtils;\r
import com.gitblit.wicket.WicketUtils;\r
import com.gitblit.wicket.panels.LinkPanel;\r
\r
break;\r
}\r
}\r
- item.add(new Label("repository", sr.repository));\r
- item.add(new Label("branch", sr.branch));\r
+ item.add(new LinkPanel("repository", null, sr.repository, SummaryPage.class, WicketUtils.newRepositoryParameter(sr.repository)));\r
+ item.add(new LinkPanel("branch", "branch", StringUtils.getRelativePath(Constants.R_HEADS, sr.branch), LogPage.class, WicketUtils.newObjectParameter(sr.repository, sr.branch)));\r
item.add(new Label("author", sr.author));\r
item.add(WicketUtils.createTimestampLabel("date", sr.date, getTimeZone()));\r
}\r