| | |
| | |
|
| | | public void populateItem(final Item<Activity> activityItem) {
|
| | | final Activity entry = activityItem.getModelObject();
|
| | | activityItem.add(WicketUtils.createDatestampLabel("title", entry.startDate, getTimeZone()));
|
| | | activityItem.add(WicketUtils.createDatestampLabel("title", entry.startDate, getTimeZone(), getTimeUtils()));
|
| | |
|
| | | // display the commits in chronological order
|
| | | DataView<RepositoryCommit> commits = new DataView<RepositoryCommit>("commit",
|
| | |
| | |
|
| | | // commit time of day
|
| | | commitItem.add(WicketUtils.createTimeLabel("time", commit.getCommitterIdent()
|
| | | .getWhen(), getTimeZone()));
|
| | | .getWhen(), getTimeZone(), getTimeUtils()));
|
| | |
|
| | | // avatar
|
| | | commitItem.add(new GravatarImage("avatar", commit.getAuthorIdent(), 36));
|
| | | commitItem.add(new GravatarImage("avatar", commit.getAuthorIdent(), 40));
|
| | |
|
| | | // merge icon
|
| | | if (commit.getParentCount() > 1) {
|
| | | commitItem.add(WicketUtils.newImage("commitIcon",
|
| | | "commit_merge_16x16.png"));
|
| | | } else {
|
| | | commitItem.add(WicketUtils.newBlankImage("commitIcon"));
|
| | | commitItem.add(WicketUtils.newBlankImage("commitIcon").setVisible(false));
|
| | | }
|
| | |
|
| | | // author search link
|