@(issues: List[(model.Issue, List[model.Label], Int)], counts: List[service.PullRequestService.PullRequestCount], filter: Option[String], page: Int, openCount: Int, closedCount: Int, allCount: Int, condition: service.IssuesService.IssueSearchCondition, repository: service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main("Pull Requests - " + repository.owner + "/" + repository.name){ @html.header("pulls", repository)

@if(hasWritePermission){
@helper.html.paginator(page, (if(condition.state == "open") openCount else closedCount), service.PullRequestService.PullRequestLimit, 7, condition.toURL) New pull request
}
@openCount Open @closedCount Closed

@if(issues.isEmpty){
No pull requests to show.
} @issues.map { case (issue, labels, commentCount) =>
@issue.title #@issue.issueId @issue.content.map { content => @cut(content, 90) }.getOrElse { No description available } @avatar(issue.openedUserName, 20) by @issue.openedUserName @datetime(issue.registeredDate) @if(commentCount > 0){ @commentCount @plural(commentCount, "comment") }
}

@helper.html.paginator(page, (if(condition.state == "open") openCount else closedCount), service.PullRequestService.PullRequestLimit, 10, condition.toURL)
}