| | |
| | | import org.eclipse.jgit.lib.Repository;
|
| | | import org.eclipse.jgit.revwalk.RevCommit;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.GitBlit;
|
| | | import com.gitblit.Keys;
|
| | | import com.gitblit.models.RefModel;
|
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.utils.JGitUtils.SearchType;
|
| | | import com.gitblit.utils.StringUtils;
|
| | | import com.gitblit.wicket.WicketUtils;
|
| | | import com.gitblit.wicket.pages.CommitDiffPage;
|
| | |
| | | private boolean hasMore;
|
| | |
|
| | | public SearchPanel(String wicketId, final String repositoryName, final String objectId,
|
| | | final String value, SearchType searchType, Repository r, int limit, int pageOffset) {
|
| | | final String value, Constants.SearchType searchType, Repository r, int limit, int pageOffset) {
|
| | | super(wicketId);
|
| | | boolean pageResults = limit <= 0;
|
| | | int itemsPerPage = GitBlit.getInteger(Keys.web.itemsPerPage, 50);
|
| | |
| | |
|
| | | // header
|
| | | add(new CommitHeaderPanel("commitHeader", repositoryName, commit));
|
| | | |
| | |
|
| | | add(new Label("searchString", value));
|
| | | add(new Label("searchType", searchType.toString()));
|
| | |
|
| | |
| | | String author = entry.getAuthorIdent().getName();
|
| | | LinkPanel authorLink = new LinkPanel("commitAuthor", "list", author,
|
| | | SearchPage.class, WicketUtils.newSearchParameter(repositoryName, objectId,
|
| | | author, SearchType.AUTHOR));
|
| | | setPersonSearchTooltip(authorLink, author, SearchType.AUTHOR);
|
| | | author, Constants.SearchType.AUTHOR));
|
| | | setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);
|
| | | item.add(authorLink);
|
| | |
|
| | | // merge icon
|