Peter Stuifzand
9d4c6ed770
All checks were successful
continuous-integration/drone/push Build is passing
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
{{ define "navbar" }}
|
|
<a href="/edit/{{ .TodayPage }}" class="navbar-item">Today</a>
|
|
<a href="/{{ .Name }}" class="navbar-item">Back</a>
|
|
{{ end }}
|
|
|
|
{{define "content"}}
|
|
<div class="columns">
|
|
<div class="column">
|
|
<nav class="breadcrumb">
|
|
<ol>
|
|
{{ range $p := .Parents }}
|
|
<li><a href="/edit/{{ $p.ID }}">{{ $p.Text }}</a></li>
|
|
{{ end }}
|
|
</ol>
|
|
</nav>
|
|
<h1 class="title">{{ .TitleHTML }}</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="/edit/{{ $name }}">{{ (index $refs 0).Title }}</a>
|
|
<ul>
|
|
{{ range $ref := $refs }}
|
|
<li>{{ $ref.LineEditHTML }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ define "content_head" }}
|
|
{{ end }}
|
|
|
|
{{ define "footer_scripts" }}
|
|
{{ end }}
|