@(title: String,
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,
hasOriginWritePermission: Boolean,
collaborators: List[String],
milestones: List[gitbucket.core.model.Milestone],
labels: List[gitbucket.core.model.Label])(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.view.helpers
@gitbucket.core.html.main(s"Pull requests - ${repository.owner}/${repository.name}", Some(repository)){
@gitbucket.core.html.menu("pulls", repository){

Checking...
@if(commits.nonEmpty && context.loginAccount.isDefined){
Create pull request
Discuss and review the changes in this comparison with others.
}
@if(commits.isEmpty){
There isn't anything to compare.
@originRepository.owner:@originId and @forkedRepository.owner:@forkedId are identical.
@*
There isn't anything to compare.
@originRepository.owner:@originId and @forkedRepository.owner:@forkedId are identical.
|
*@
} else {
|
@defining(commits.flatten){ commits =>
@commits.size @helpers.plural(commits.size, "commit")
}
|
@diffs.size @helpers.plural(diffs.size, "file") changed
|
@defining(comments.collect { case c: gitbucket.core.model.CommitComment => c }){ comments =>
@comments.size commit @helpers.plural(comments.size, "comment")
}
|
@defining(commits.flatMap(_.map(_.authorEmailAddress)).distinct){ contributors =>
@contributors.size @helpers.plural(contributors.size, "contributor")
}
|
@commits.map { day =>
Commits on @helpers.date(day.head.commitTime)
@day.map { commit =>
|
@helpers.avatar(commit, 20)
@helpers.user(commit.authorName, commit.authorEmailAddress, "username strong")
|
@commit.shortMessage |
@*
@if(comments.isDefined){
@comments.get.flatMap @{
case comment: CommitComment => Some(comment)
case other => None
}.count(t => t.commitId == commit.id && !t.pullRequest)
}
*@
@commit.id.substring(0, 7)
|
}
}
@gitbucket.core.helper.html.diff(diffs, repository, Some(commitId), Some(sourceId), true, None, false, false)
Showing you all comments on commits in this comparison.
@gitbucket.core.issues.html.commentlist(None, comments, false, repository, None)
}
}
}