@(active: String, repository: service.RepositoryService.RepositoryInfo, id: Option[String] = None, expand: Boolean = false)(body: Html)(implicit context: app.Context) @import context._ @import view.helpers._ @sidemenu(path: String, name: String, label: String, count: Int = 0) = {
- @if(active == name){ } else { } @if(expand){ @label} @if(expand && count > 0){
  @count
  }
} @sidemenuPlugin(path: String, name: String, label: String, icon: String) = {
- @if(expand){ @label}
}
@if(repository.commitCount > 0){
Fork @repository.forkedCount
}
@helper.html.repositoryicon(repository, true) @repository.owner / @repository.name @defining(repository.repository){ x => @if(repository.repository.originRepositoryName.isDefined){
forked from @x.parentUserName/@x.parentRepositoryName
} }

@sidemenu("" , "code" , "Code") @sidemenu("/issues", "issues", "Issues", repository.issueCount) @sidemenu("/pulls" , "pulls" , "Pull Requests", repository.pullCount) @sidemenu("/wiki" , "wiki" , "Wiki") @plugin.PluginSystem.repositoryMenus.map { menu => @if(menu.condition(context)){ @sidemenuPlugin(menu.url, menu.label, menu.label, menu.icon) } } @if(loginAccount.isDefined && (loginAccount.get.isAdmin || repository.managers.contains(loginAccount.get.userName))){ @sidemenu("/settings", "settings", "Settings") }

@if(expand){
HTTP clone URL
@helper.html.copy("repository-url-copy", repository.httpUrl){ } @if(settings.ssh && loginAccount.isDefined){
You can clone HTTP or SSH.
} @id.map { id =>
Download ZIP
Download TAR.GZ
} }
@if(expand){ @repository.repository.description.map { description =>

@description

}

@repository.commitCount commits | @repository.branchList.length branches | @repository.tags.length releases

} @body