James Moger
2011-04-21 a645ba09d693495c50ab0ee0d1fc2734407b73a4
src/com/gitblit/wicket/panels/SearchPanel.java
@@ -4,6 +4,7 @@
import java.util.List;
import java.util.Map;
import org.apache.wicket.markup.html.image.ContextImage;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
@@ -74,6 +75,13 @@
            setPersonSearchTooltip(authorLink, author, SearchType.AUTHOR);
            item.add(authorLink);
            // merge icon
            if (entry.getParentCount() > 1) {
               item.add(new ContextImage("commitIcon", "/com/gitblit/wicket/resources/commit_merge_16x16.png"));
            } else {
               item.add(new ContextImage("commitIcon", "/com/gitblit/wicket/resources/blank.png"));
            }
            String shortMessage = entry.getShortMessage();
            String trimmedMessage = StringUtils.trimShortLog(shortMessage);
            // TODO highlight matches