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

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

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