@(pageName: String, page: gitbucket.core.service.WikiService.WikiPageInfo, pages: List[String], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean, sidebar: Option[gitbucket.core.service.WikiService.WikiPageInfo], footer: Option[gitbucket.core.service.WikiService.WikiPageInfo])(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @import gitbucket.core.service.WikiService._ @html.main(s"${pageName} - ${repository.owner}/${repository.name}", Some(repository)){ @html.menu("wiki", repository){
@defining(15){ max =>
Pages @pages.length

@pages.zipWithIndex.map { case (page, i) =>
- @page
} @if(pages.size > max){
- Show more @{pages.size - max} pages...
}

} @sidebar.map { sidebarPage =>
}.getOrElse{ @if(hasWritePermission){
} }
Clone this wiki locally
@helper.html.copy("repository-url-copy", httpUrl(repository)){ } @if(settings.ssh && loginAccount.isDefined){
You can clone HTTP or SSH.
}
@markdown( markdown = page.content, repository = repository, enableWikiLink = true, enableRefsLink = false, enableLineBreaks = false, enableTaskList = false, hasWritePermission = false, pages = pages )
@footer.map { footerPage =>
}.getOrElse{ @if(hasWritePermission){
} }
} }