@(issue: model.Issue, pullreq: model.PullRequest, comments: List[model.IssueComment], issueLabels: List[model.Label], collaborators: List[String], milestones: List[(model.Milestone, Int, Int)], labels: List[model.Label], hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._
@issues.html.issuedetail(issue, comments, collaborators, milestones, hasWritePermission, repository) @issues.html.commentlist(issue, comments, hasWritePermission, repository, Some(pullreq)) @if(hasWritePermission && !issue.closed){
Checking...
Merge pull request #@issue.issueId from @{pullreq.requestUserName}/@{pullreq.requestBranch}
@issue.title
} @if(hasWritePermission && issue.closed && pullreq.userName == pullreq.requestUserName && pullreq.repositoryName == pullreq.requestRepositoryName && repository.branchList.contains(pullreq.requestBranch)){
Delete branch
Pull request successfully merged and closed
You're all set-the @pullreq.requestBranch branch can be safely deleted.
} @issues.html.commentform(issue, hasWritePermission, repository)
@if(issue.closed) { @if(comments.exists(_.action == "merge")){ Merged } else { Closed } } else { Open }
@comments.size @plural(comments.size, "comment")

@issues.html.labels(issue, issueLabels, labels, hasWritePermission, repository)