@(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(repository.owner + "/" + repository.name) { @html.header("code", repository) @tab(branch, repository, "files")
@repository.name / @pathList.zipWithIndex.map { case (section, i) => @section / }

@link(latestCommit.summary, repository) @if(latestCommit.description.isDefined){ ... } @if(latestCommit.description.isDefined){
    @link(latestCommit.description.get, repository)
}
@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, false)
} }