@(branch: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, pathList: List[String], fileName: Option[String], content: gitbucket.core.util.JGitUtil.ContentInfo, protectedBranch: Boolean, commit: String, newLineMode: String = "auto", useSoftTabs: Boolean = false, tabSize: Int = 8 )(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(if(fileName.isEmpty) "New File" else s"Editing ${fileName.get} at ${branch} - ${repository.owner}/${repository.name}", Some(repository)) { @gitbucket.core.html.menu("files", repository){ @if(protectedBranch){
branch @branch is protected.
}
@repository.name / @pathList.zipWithIndex.map { case (section, i) => @section / }

Commit changes
Commit directly to the @branch branch. Create a new branch for this commit and start a pull request.
@if(fileName.isEmpty){ Cancel } else { Cancel }
} }