@(active: String, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, id: Option[String] = None, info: Option[Any] = None, error: Option[Any] = None)(body: Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @menuitem(path: String, name: String, label: String, icon: String, count: Int = 0) = {
- @if(path.startsWith("http")){ @label @if(count > 0){ @count } } else { @label @if(count > 0) { @count } }
}
@gitbucket.core.helper.html.information(info) @gitbucket.core.helper.html.error(error)
@gitbucket.core.plugin.PluginRegistry().getRepositoryHeaders.map { repositoryHeaderComponent => @repositoryHeaderComponent(repository, context) } @if(repository.repository.options.allowFork) { @if(context.loginAccount.isEmpty){ Fork: @repository.forkedCount } else { Fork: @repository.forkedCount } }
@gitbucket.core.helper.html.repositoryicon(repository, true) @repository.owner / @repository.name @defining(repository.repository){ x => @if(repository.repository.originRepositoryName.isDefined){
forked from @x.parentUserName/@x.parentRepositoryName
} }
@body