@(issue: model.Issue, pullreq: model.PullRequest, comments: List[model.IssueComment], collaborators: List[String], milestones: List[(model.Milestone, Int, Int)], dayByDayCommits: Seq[Seq[util.JGitUtil.CommitInfo]], diffs: Seq[util.JGitUtil.DiffInfo], hasConflict: Boolean, hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo, requestRepositoryUrl: String)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main("%s - Pull Request #%d - %s/%s".format(issue.title, issue.issueId, repository.owner, repository.name)){ @html.header("pulls", repository) @defining(dayByDayCommits.flatten){ commits =>
@if(issue.closed) { @comments.find(_.action == "merge").map{ comment => Merged @comment.commentedUserName merged @commits.size @plural(commits.size, "commit") into `@pullreq.requestUserName:@pullreq.requestBranch` from `@pullreq.userName:@pullreq.branch` at @datetime(comment.registeredDate) }.getOrElse { Closed @issue.openedUserName wants to merge @commits.size @plural(commits.size, "commit") into `@pullreq.requestUserName:@pullreq.requestBranch` from `@pullreq.userName:@pullreq.branch` } } else { Open @issue.openedUserName wants to merge @commits.size @plural(commits.size, "commit") into `@pullreq.requestUserName:@pullreq.requestBranch` from `@pullreq.userName:@pullreq.branch` }
@pulls.html.discussion(issue, pullreq, comments, collaborators, milestones, hasConflict, hasWritePermission, repository, requestRepositoryUrl)
@pulls.html.commits(issue, pullreq, dayByDayCommits, hasWritePermission, repository)
@pulls.html.files(issue, pullreq, diffs, commits.head.id, commits.last.id, hasWritePermission, repository)
} }