@(commits: Seq[Seq[gitbucket.core.util.JGitUtil.CommitInfo]], diffs: Seq[gitbucket.core.util.JGitUtil.DiffInfo], members: List[(String, String)], comments: List[gitbucket.core.model.Comment], originId: String, forkedId: String, sourceId: String, commitId: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, originRepository: gitbucket.core.service.RepositoryService.RepositoryInfo, forkedRepository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @html.main(s"Pull Requests - ${repository.owner}/${repository.name}", Some(repository)){ @html.menu("pulls", repository){
Edit @originRepository.owner:@originId ... @forkedRepository.owner:@forkedId
@helper.html.dropdown(originRepository.owner + "/" + originRepository.name, "base fork") { @members.map { case (owner, name) =>
- @helper.html.checkicon(owner == originRepository.owner) @owner/@name
} } @helper.html.dropdown(originId, "base") { @originRepository.branchList.map { branch =>
- @helper.html.checkicon(branch == originId) @branch
} } ... @helper.html.dropdown(forkedRepository.owner + "/" + forkedRepository.name, "head fork") { @members.map { case (owner, name) =>
- @helper.html.checkicon(owner == forkedRepository.owner) @owner/@name
} } @helper.html.dropdown(forkedId, "compare") { @forkedRepository.branchList.map { branch =>
- @helper.html.checkicon(branch == forkedId) @branch
} }
@if(commits.nonEmpty && hasWritePermission){
Create pull request
Checking...
@helper.html.preview(repository, "", false, true, true, hasWritePermission, "width: 580px; height: 200px;")
} @if(commits.isEmpty){

#### There isn't anything to compare.

@originRepository.owner:@originId and @forkedRepository.owner:@forkedId are identical.

} else { @pulls.html.commits(commits, Some(comments), repository) @helper.html.diff(diffs, repository, Some(commitId), Some(sourceId), true, None, hasWritePermission, false)

Showing you all comments on commits in this comparison.

@issues.html.commentlist(None, comments, hasWritePermission, repository, None) } } }