wiki/templates/edit.html
Peter Stuifzand f2cc16341d
All checks were successful
continuous-integration/drone/push Build is passing
Add autocomplete of page links
2020-05-31 22:08:36 +02:00

35 lines
849 B
HTML

{{ define "navbar" }}
<a href="/{{ .Name }}" class="navbar-item">Back</a>
{{ end }}
{{define "content"}}
<h1 class="title">{{ .Title }}</h1>
<form action="/save/" method="post">
<input type="hidden" name="p" value="{{ .Name }}" />
{{ .Editor }}
</form>
{{ if .Backrefs }}
<div class="backrefs content">
<h3>Linked references</h3>
<ul>
{{ range $name, $refs := .Backrefs }}
<li><a href="/{{ $name }}">{{ (index $refs 0).Title }}</a>
<ul>
{{ range $ref := $refs }}
<li>{{ $ref.LineHTML }}</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}
{{ define "content_head" }}
{{ end }}
{{ define "footer_scripts" }}
{{ end }}