@(pathList: List[String],
branch: String,
repository: gitbucket.core.service.RepositoryService.RepositoryInfo,
commits: Seq[Seq[gitbucket.core.util.JGitUtil.CommitInfo]],
page: Int,
hasNext: Boolean,
hasWritePermission: Boolean)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
@html.main(s"${repository.owner}/${repository.name}", Some(repository)) {
@html.menu("code", repository){
@if(pathList.isEmpty){
@helper.html.branchcontrol(
branch,
repository,
hasWritePermission
){
@repository.branchList.map { x =>
@helper.html.checkicon(x == branch) @x
}
}
}
@if(pathList.nonEmpty){
History for
@repository.name /
@pathList.zipWithIndex.map { case (section, i) =>
@if(i == pathList.length - 1){
@section
} else {
@section /
}
}
}
@commits.map { day =>
Commits on @date(day.head.commitTime)
@day.map { commit =>
@avatarLink(commit, 40)
@link(commit.summary, repository)
@if(commit.description.isDefined){
...
}
@if(commit.description.isDefined){
@link(commit.description.get, repository)
}
@user(commit.authorName, commit.authorEmailAddress, "username")
authored @helper.html.datetimeago(commit.authorTime)
@if(commit.isDifferentFromAuthor) {
@user(commit.committerName, commit.committerEmailAddress, "username")
committed @helper.html.datetimeago(commit.authorTime)
}
}
}
}
}