@(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, isLfsFile: Boolean, tabSize: Int, highlighterTheme: String)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"${(repository.name :: pathList).mkString("/")} at ${branch} - ${repository.owner}/${repository.name}", Some(repository), highlighterTheme) { @gitbucket.core.html.menu("files", repository){
Transfer to URL with SHA Find file
Newer

Older
@gitbucket.core.helper.html.branchcontrol(branch, repository, hasWritePermission){ @repository.branchList.map { x =>
- @gitbucket.core.helper.html.checkicon(x == branch) @x
} }
@repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ @section } else { @section / } } @if(isLfsFile){ LFS }
@helpers.avatarLink(latestCommit, 20) @helpers.user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") @gitbucket.core.helper.html.datetimeago(latestCommit.commitTime) @helpers.readableSize(content.size) @helpers.link(latestCommit.summary, repository)
Raw @if(content.viewType == "text"){ Blame } History @if(hasWritePermission && content.viewType == "text" && repository.branchList.contains(branch)){ } @if(hasWritePermission && repository.branchList.contains(branch)){ }
@defining(helpers.isRenderable(pathList.last)){ isRenderable => @if(!isBlame && isRenderable) {
@helpers.renderMarkup(pathList, content.content.getOrElse(""), branch, repository, false, false, true)
}else{ @if(content.viewType == "text"){

    @content.content.map(_.replaceAll("^(\r?\n)", "$1$1"))

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