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

@helpers.link(latestCommit.summary, repository) @if(latestCommit.description.isDefined){ ... } @if(latestCommit.description.isDefined){
    @helpers.link(latestCommit.description.get, repository)
}
@latestCommit.committer @helpers.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 } | @helpers.datetime(file.time) | @helpers.link(file.message, repository) [@file.committer]
}

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