@(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.commentlist(issue, comments, hasWritePermission, repository, Some(pullreq)) @defining(comments.exists(_.action == "merge")){ merged => @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 && merged && 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, !merged, hasWritePermission, repository)
@if(issue.closed) { @if(merged){ Merged } else { Closed } } else { Open }
@comments.size @plural(comments.size, "comment")
}

@issues.html.issueinfo(issue, comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository)