@(branch: String, repository: service.RepositoryService.RepositoryInfo, pathList: List[String], latestCommit: util.JGitUtil.CommitInfo, files: List[util.JGitUtil.FileInfo], readme: Option[String])(implicit context: app.Context) @import context._ @import view.helpers._ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.header("code", repository) @tab(branch, repository, "files")
@defining(repository.commitCount){ commitCount => @if(commitCount > 1000){ @commitCount+ } else { @commitCount } @plural(commitCount, "commit") }
@repository.name / @pathList.zipWithIndex.map { case (section, i) => @section / }

@link(latestCommit.summary, repository) @if(latestCommit.description.isDefined){ ...
    @link(latestCommit.description.get, repository)
}
@avatar(latestCommit.committer, 20) @latestCommit.committer @datetime(latestCommit.time) latest commit @latestCommit.id.substring(0, 10)
@if(pathList.size > 0){
| .. |  |
} @files.map { file =>
@if(file.isDirectory){ } else { } | @if(file.isDirectory){ @file.name } else { @file.name } | @datetime(file.time) | @link(file.message, repository) [@file.committer]
}

@readme.map { content =>
README.md
@markdown(content, repository, false, false)
} }