@(pageName: String, page: gitbucket.core.service.WikiService.WikiPageInfo, pages: List[String], repository: gitbucket.core.service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(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...
}
}
Clone this wiki locally
@helper.html.copy("repository-url-copy", httpUrl(repository)){ } @if(settings.ssh && loginAccount.isDefined){
You can clone HTTP or SSH.
}
@markdown(page.content, repository, true, false, false, false, pages)
} }