@(branch: String = "", repository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(body: Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.service.RepositoryService @import context._ @import gitbucket.core._ @import gitbucket.core.view.helpers._ @helper.html.dropdown( value = if(branch.length == 40) branch.substring(0, 10) else branch, prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree", mini = true ) {
- Switch branches
@body @if(hasWritePermission) {
- Create branch:
  from '@branch'
} }