wiki/templates/edit.html
Peter Stuifzand 6c04d9871f
All checks were successful
continuous-integration/drone/push Build is passing
improve backrefs for view and edit
2020-05-08 17:21:39 +02:00

29 lines
560 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">
<h3>Backrefs</h3>
<ul>
{{ range $ref := .Backrefs }}
<li><a href="/{{ $ref.Name }}">{{ $ref.Title }}</a></li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}
{{ define "content_head" }}
{{ end }}
{{ define "footer_scripts" }}
{{ end }}