@(branch: String = "", repository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(body: Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.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", maxValueWidth = "200px" ) {
- Switch branches
@body @if(hasWritePermission) {
- Create branch:
  from '@branch'
} }