@(branch: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, pathList: List[String], fileName: Option[String], content: gitbucket.core.util.JGitUtil.ContentInfo, protectedBranch: Boolean)(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 / }

@helpers.avatarLink(context.loginAccount.get.userName, 48)
Commit changes
@if(fileName.isEmpty){ Cancel } else { Cancel }
} }