@(branch: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, pathList: List[String], content: gitbucket.core.util.JGitUtil.ContentInfo, latestCommit: gitbucket.core.util.JGitUtil.CommitInfo, hasWritePermission: Boolean, isBlame: Boolean)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { @html.menu("code", repository){
Newer

Older
@helper.html.branchcontrol( branch, repository, hasWritePermission ){ @repository.branchList.map { x =>
- @helper.html.checkicon(x == branch) @x
} } @repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ @section } else { @section / } }

@avatar(latestCommit, 20) @user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") @helper.html.datetimeago(latestCommit.commitTime) @link(latestCommit.summary, repository) @if(hasWritePermission && content.viewType == "text" && repository.branchList.contains(branch)){ Edit } Raw @if(content.viewType == "text"){ Blame } History @if(hasWritePermission){ Delete }

@if(content.viewType == "text"){ @defining(renderableSuffixes.find(suffix => pathList.reverse.head.toLowerCase.endsWith(suffix))) { isRrenderable => @if(!isBlame && isRrenderable) {
@renderMarkup(pathList, content.content.get, branch, repository, false, false)
} else {

    @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)
}

} }