@(branch: String, repository: service.RepositoryService.RepositoryInfo, pathList: List[String], content: util.JGitUtil.ContentInfo, latestCommit: util.JGitUtil.CommitInfo, hasWritePermission: Boolean)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.menu("code", repository){
| 
            @avatar(latestCommit, 20)
            @user(latestCommit.committer, latestCommit.mailAddress, "username strong")
            @datetime(latestCommit.time)
            
           | 
|---|
| @if(content.viewType == "text"){
            @defining(pathList.reverse.head) { file =>
              @if(renderableSuffixes.find(suffix => file.toLowerCase.endsWith(suffix))) { 
                  @renderMarkup(pathList, content.content.get, branch, repository, false, false)
                } else { @content.content.get} } } @if(content.viewType == "image"){ 
              View Raw} (Sorry about that, but we can't show files that are this big right now) |