@(pageName: String, page: Option[gitbucket.core.service.WikiService.WikiPageInfo], repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @import gitbucket.core.util.FileUtil @gitbucket.core.html.main(s"${if(pageName.isEmpty) "New Page" else pageName} - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("wiki", repository){
@if(page.isDefined){ Page History Delete Page }

# Editing @if(pageName.isEmpty){New Page} else {@pageName}

@gitbucket.core.helper.html.preview( repository = repository, content = page.map(_.content).getOrElse(""), enableWikiLink = true, enableRefsLink = false, enableLineBreaks = false, enableTaskList = false, hasWritePermission = false, completionContext = "wiki", style = "height: 400px;", styleClass = "monospace", placeholder = "", ariaLabel = "Page content", uid = 1 )
Edit Message
} }