@(branch: String = "", repository: service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(body: Html)(implicit context: app.Context) @import context._ @import 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) { } }