@(active: String, issue: gitbucket.core.model.Issue, pullreq: gitbucket.core.model.PullRequest, commits: Seq[gitbucket.core.util.JGitUtil.CommitInfo], comments: Seq[gitbucket.core.model.Comment], changedFileSize: Int, isManageable: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, flash: Map[String, String] = Map.empty)(body: => Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @import gitbucket.core.model.Comment @import gitbucket.core.model.CommitComments @import gitbucket.core.model.IssueComment @gitbucket.core.html.main(s"${issue.title} - Pull request #${issue.issueId} - ${repository.owner}/${repository.name}", Some(repository)) { @gitbucket.core.html.menu("pulls", repository) {
@pullreq.userName:@pullreq.branch
from @pullreq.requestUserName:@pullreq.requestBranch
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
}.getOrElse {
Closed
@helpers.user(issue.openedUserName, styleClass = "username strong")
wants to merge @commits.size @helpers.plural(commits.size, "commit")
into @pullreq.userName:@pullreq.branch
from @pullreq.requestUserName:@pullreq.requestBranch
}
} else {
Open
@helpers.user(issue.openedUserName, styleClass = "username strong")
wants to merge @commits.size @helpers.plural(commits.size, "commit")
into @pullreq.userName:@pullreq.branch
from @pullreq.requestUserName:@pullreq.requestBranch
}