wiki/templates/edit.html

35 lines
849 B
HTML
Raw Normal View History

2020-05-07 12:15:36 +00:00
{{ define "navbar" }}
<a href="/{{ .Name }}" class="navbar-item">Back</a>
{{ end }}
2018-11-24 12:34:51 +00:00
{{define "content"}}
<h1 class="title">{{ .Title }}</h1>
<form action="/save/" method="post">
<input type="hidden" name="p" value="{{ .Name }}" />
2019-08-25 10:30:00 +00:00
{{ .Editor }}
2018-11-24 12:34:51 +00:00
</form>
2020-05-08 15:21:39 +00:00
{{ if .Backrefs }}
<div class="backrefs content">
<h3>Linked references</h3>
<ul>
2020-05-16 20:27:48 +00:00
{{ range $name, $refs := .Backrefs }}
<li><a href="/{{ $name }}">{{ (index $refs 0).Title }}</a>
<ul>
2020-05-16 20:27:48 +00:00
{{ range $ref := $refs }}
2020-05-31 20:08:36 +00:00
<li>{{ $ref.LineHTML }}</li>
2020-05-16 20:27:48 +00:00
{{ end }}
</ul>
</li>
{{ end }}
</ul>
</div>
2020-05-08 15:21:39 +00:00
{{ end }}
2018-11-24 12:34:51 +00:00
{{ end }}
{{ define "content_head" }}
{{ end }}
2019-08-25 10:30:00 +00:00
{{ define "footer_scripts" }}
{{ end }}