@(pageName: String, page: gitbucket.core.service.WikiService.WikiPageInfo, pages: List[String], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, isEditable: Boolean, sidebar: Option[gitbucket.core.service.WikiService.WikiPageInfo], footer: Option[gitbucket.core.service.WikiService.WikiPageInfo])(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @import gitbucket.core.service.WikiService @gitbucket.core.html.main(s"${pageName} - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("wiki", repository){
Page History @if(isEditable){ Edit Page New Page }

# @pageName

@page.committer edited this page @gitbucket.core.helper.html.datetimeago(page.time)

@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(isEditable){
} }
Clone this wiki locally
@gitbucket.core.helper.html.copy("repository-url", "repository-url-copy", WikiService.wikiHttpUrl(repository)){ } @if(WikiService.wikiSshUrl(repository).isDefined) {
You can clone HTTP or SSH.
}
@helpers.markdown( markdown = page.content, repository = repository, branch = "master", enableWikiLink = true, enableRefsLink = false, enableLineBreaks = false, enableTaskList = false, hasWritePermission = false, pages = pages )
@footer.map { footerPage =>
}.getOrElse{ @if(isEditable){
} }
} }