@(active: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(body: Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers

<li@if(active=="options"){ class="active"}> Options <li@if(active=="collaborators"){ class="active"}> Collaborators @if(!repository.branchList.isEmpty){ <li@if(active=="branches"){ class="active"}> Branches } <li@if(active=="hooks"){ class="active"}> Service Hooks <li@if(active=="deploykeys"){ class="active"}> Deploy Keys <li@if(active=="danger"){ class="active"}> Danger Zone @gitbucket.core.plugin.PluginRegistry().getRepositorySettingTabs.map { tab => @tab(repository, context).map { link => <li@if(active==link.id){ class="active"}> @link.label } }

@body