| | |
| | | import com.gitblit.wicket.WicketUtils;
|
| | | import com.gitblit.wicket.panels.CommitHeaderPanel;
|
| | | import com.gitblit.wicket.panels.CommitLegendPanel;
|
| | | import com.gitblit.wicket.panels.GravatarImage;
|
| | | import com.gitblit.wicket.panels.LinkPanel;
|
| | | import com.gitblit.wicket.panels.RefsPanel;
|
| | |
|
| | |
| | | // author
|
| | | add(createPersonPanel("commitAuthor", c.getAuthorIdent(), Constants.SearchType.AUTHOR));
|
| | | add(WicketUtils.createTimestampLabel("commitAuthorDate", c.getAuthorIdent().getWhen(),
|
| | | getTimeZone()));
|
| | |
|
| | | getTimeZone(), getTimeUtils()));
|
| | | |
| | | // committer
|
| | | add(createPersonPanel("commitCommitter", c.getCommitterIdent(), Constants.SearchType.COMMITTER));
|
| | | add(WicketUtils.createTimestampLabel("commitCommitterDate",
|
| | | c.getCommitterIdent().getWhen(), getTimeZone()));
|
| | | c.getCommitterIdent().getWhen(), getTimeZone(), getTimeUtils()));
|
| | |
|
| | | add(new Label("commitId", c.getName()));
|
| | |
|
| | |
| | | item.add(new RefsPanel("refName", repositoryName, Arrays.asList(entry.notesRef)));
|
| | | item.add(createPersonPanel("authorName", entry.notesRef.getAuthorIdent(),
|
| | | Constants.SearchType.AUTHOR));
|
| | | item.add(new GravatarImage("noteAuthorAvatar", entry.notesRef.getAuthorIdent()));
|
| | | item.add(WicketUtils.createTimestampLabel("authorDate", entry.notesRef
|
| | | .getAuthorIdent().getWhen(), getTimeZone()));
|
| | | .getAuthorIdent().getWhen(), getTimeZone(), getTimeUtils()));
|
| | | item.add(new Label("noteContent", GitBlit.self().processCommitMessage(
|
| | | repositoryName, entry.content)).setEscapeModelStrings(false));
|
| | | }
|