Newer
Older
GitBucket / src / main / twirl / gitbucket / core / settings / menu.scala.html
@Naoki Takezoe Naoki Takezoe on 27 Mar 2016 992 bytes Move the repository menu to the sidebar
@(active: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(body: Html)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
<div  style="overflow: hidden;">
  <ul class="nav nav-tabs" style="margin-bottom: 20px;">
    <li@if(active=="options"){ class="active"}>
      <a href="@url(repository)/settings/options">Options</a>
    </li>
    <li@if(active=="collaborators"){ class="active"}>
      <a href="@url(repository)/settings/collaborators">Collaborators</a>
    </li>
    @if(!repository.branchList.isEmpty){
    <li@if(active=="branches"){ class="active"}>
      <a href="@url(repository)/settings/branches">Branches</a>
    </li>
    }
    <li@if(active=="hooks"){ class="active"}>
      <a href="@url(repository)/settings/hooks">Service Hooks</a>
    </li>
    <li@if(active=="danger"){ class="active"}>
      <a href="@url(repository)/settings/danger">Danger Zone</a>
    </li>
  </ul>
  @body
</div>