@(id: String, repository: service.RepositoryService.RepositoryInfo, active: String, hideBranchPulldown: Boolean = false)(implicit context: app.Context) @import context._ @import view.helpers._

@if(!hideBranchPulldown){
- @helper.html.dropdown( value = if(id.length == 40) id.substring(0, 10) else id, prefix = if(id.length == 40) "tree" else if(repository.branchList.contains(id)) "branch" else "tree", mini = false, style = "margin-right: 20px;" ){ @repository.branchList.map { branch =>
- @helper.html.checkicon(id == branch) @branch
} } } <li@if(active=="files" ){ class="active"}>Files <li@if(active=="commits" ){ class="active"}>Commits <li@if(active=="branches"){ class="active"}>Branches@if(repository.branchList.length > 0){ @repository.branchList.length} <li@if(active=="tags" ){ class="active"}>Tags@if(repository.tags.length > 0){ @repository.tags.length}
- @helper.html.copy("repository-url-copy", repository.url){ }
- ZIP