| | |
| | | import com.gitblit.wicket.pages.LogPage;
|
| | | import com.gitblit.wicket.pages.MetricsPage;
|
| | | import com.gitblit.wicket.pages.SearchPage;
|
| | | import com.gitblit.wicket.pages.SummaryPage;
|
| | | import com.gitblit.wicket.pages.TreePage;
|
| | |
|
| | | public class BranchesPanel extends BasePanel {
|
| | |
| | | null), BranchesPage.class, WicketUtils.newRepositoryParameter(model.name)));
|
| | | } else {
|
| | | // branches page
|
| | | // show repository summary page link
|
| | | add(new LinkPanel("branches", "title", model.name, SummaryPage.class,
|
| | | WicketUtils.newRepositoryParameter(model.name)));
|
| | | add(new Label("branches", new StringResourceModel("gb.branches", this, null)));
|
| | | }
|
| | |
|
| | | ListDataProvider<RefModel> branchesDp = new ListDataProvider<RefModel>(branches);
|
| | |
| | |
|
| | | // short message
|
| | | String shortMessage = entry.getShortMessage();
|
| | | String trimmedMessage = StringUtils.trimShortLog(shortMessage);
|
| | | String trimmedMessage = StringUtils.trimString(shortMessage, Constants.LEN_SHORTLOG);
|
| | | LinkPanel shortlog = new LinkPanel("branchLog", "list subject", trimmedMessage,
|
| | | CommitPage.class, WicketUtils.newObjectParameter(model.name,
|
| | | entry.getName()));
|