@(branch: String, repository: service.RepositoryService.RepositoryInfo, pathList: List[String], content: util.JGitUtil.ContentInfo, latestCommit: util.JGitUtil.CommitInfo)(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) => @if(i == pathList.length - 1){ @section } else { @section / } }
@if(content.viewType == "text"){
@content.content.get
} @if(content.viewType == "image"){ } @if(content.viewType == "large" || content.viewType == "binary"){
View Raw
(Sorry about that, but we can't show files that are this big right now)
}
}