buildPager(queryParam, milestoneParam, statiiParam, assignedToParam, sortBy, desc, page, pageSize, results.size(), totalResults);
add(new TicketListPanel("ticketList", results, false, false));
// new milestone link
RepositoryModel repositoryModel = getRepositoryModel();
final boolean acceptingUpdates = app().tickets().isAcceptingTicketUpdates(repositoryModel)
&& user != null && user.canAdmin(getRepositoryModel());
if (acceptingUpdates) {
add(new LinkPanel("newMilestone", null, getString("gb.newMilestone"),
NewMilestonePage.class, WicketUtils.newRepositoryParameter(repositoryName)));