| | |
| | | import org.eclipse.jgit.lib.Repository;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.GitBlit;
|
| | | import com.gitblit.Keys;
|
| | | import com.gitblit.models.Activity;
|
| | | import com.gitblit.models.RepositoryCommit;
|
| | |
| | |
|
| | | Collections.sort(recentActivity);
|
| | |
|
| | | final int shortHashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);
|
| | | final int shortHashLen = app().settings().getInteger(Keys.web.shortCommitIdLength, 6);
|
| | | DataView<Activity> activityView = new DataView<Activity>("activity",
|
| | | new ListDataProvider<Activity>(recentActivity)) {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
| | | .getWhen(), getTimeZone(), getTimeUtils()));
|
| | |
|
| | | // avatar
|
| | | commitItem.add(new GravatarImage("avatar", commit.getAuthorIdent(), 40));
|
| | | commitItem.add(new AvatarImage("avatar", commit.getAuthorIdent(), 40));
|
| | |
|
| | | // merge icon
|
| | | if (commit.getParentCount() > 1) {
|
| | |
| | | String author = commit.getAuthorIdent().getName();
|
| | | LinkPanel authorLink = new LinkPanel("author", "list", author,
|
| | | GitSearchPage.class, WicketUtils.newSearchParameter(commit.repository,
|
| | | commit.getName(), author, Constants.SearchType.AUTHOR), true);
|
| | | null, author, Constants.SearchType.AUTHOR), true);
|
| | | setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);
|
| | | commitItem.add(authorLink);
|
| | |
|