{{template "base/head" .}}
{{template "repo/header" .}} {{ $title := .title}}
{{.i18n.Tr "repo.wiki.page"}}: {{$title}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{template "repo/clone_buttons" .}} {{template "repo/clone_script" .}}
{{.CommitCount}} {{svg "octicon-history"}} {{$title}}
{{$timeSince := TimeSince .Author.When $.i18n.Lang}} {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
{{if .EscapeStatus.Escaped}} {{.i18n.Tr "repo.unescape_control_characters"}} {{.i18n.Tr "repo.escape_control_characters"}} {{end}} {{if and .CanWriteWiki (not .Repository.IsMirror)}}
{{.i18n.Tr "repo.wiki.edit_page_button"}} {{.i18n.Tr "repo.wiki.new_page_button"}} {{.i18n.Tr "repo.wiki.delete_page_button"}}
{{end}}
{{if .FormatWarning}}

{{.FormatWarning}}

{{end}}
{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}} {{.content | Safe}}
{{if or .sidebarPresent .toc}}
{{if .toc}}
{{.i18n.Tr "toc"}}
{{$level := 0}} {{range .toc}} {{if lt $level .Level}}{{range Iterate (Subtract .Level $level)}}

{{end}}{{end}} {{if gt $level .Level}}{{range Iterate (Subtract $level .Level)}}

{{end}}{{end}} {{$level = .Level}}
- {{.Text}}
{{end}} {{range Iterate $level}}{{end}}
{{end}} {{if .sidebarPresent}}
{{if and .CanWriteWiki (not .Repository.IsMirror)}} {{svg "octicon-pencil"}} {{end}} {{template "repo/unicode_escape_prompt" dict "EscapeStatus" .sidebarEscapeStatus "root" $}} {{.sidebarContent | Safe}}
{{end}}
{{end}}
{{if .footerPresent}}
{{if and .CanWriteWiki (not .Repository.IsMirror)}} {{svg "octicon-pencil"}} {{end}} {{template "repo/unicode_escape_prompt" dict "footerEscapeStatus" .sidebarEscapeStatus "root" $}} {{.footerContent | Safe}}
{{end}}
{{svg "octicon-trash"}} {{.i18n.Tr "repo.wiki.delete_page_button"}}

{{.i18n.Tr "repo.wiki.delete_page_notice_1" ($title|Escape) | Safe}}

{{template "base/delete_modal_actions" .}}
{{template "base/footer" .}}