@(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(s"${repository.owner}/${repository.name}", Some(repository)) { @html.header("code", repository) @tab(branch, repository, "files")
@repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ @section } else { @section / } }
@avatar(latestCommit, 20) @user(latestCommit.committer, latestCommit.mailAddress, "username strong") @datetime(latestCommit.time) @link(latestCommit.summary, repository)
@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)
}
}