@(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(repository.branchList.contains(branch)) "branch" else if (repository.tags.map(_.name).contains(branch)) "tag" else "tree", style = "min-width: 200px;", maxValueWidth = "200px" ) {
@body @if(hasWritePermission) {
- Create branch:
  from '@branch'
} }