wiki/templates/edit.html
Peter Stuifzand 86f4d68d9c
Some checks failed
continuous-integration/drone/push Build is failing
Show more information in back references
2020-05-16 21:02:19 +02:00

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