2020-05-07 12:15:36 +00:00
|
|
|
{{ define "navbar" }}
|
2020-07-19 13:18:03 +00:00
|
|
|
<a href="/edit/{{ .TodayPage }}" class="navbar-item">Today</a>
|
2020-07-05 18:34:36 +00:00
|
|
|
<a href="/{{ .Name }}" class="navbar-item">Back</a>
|
2020-05-07 12:15:36 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2018-11-24 12:34:51 +00:00
|
|
|
{{define "content"}}
|
2020-07-05 18:34:36 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2020-10-21 18:49:23 +00:00
|
|
|
<nav class="breadcrumb">
|
|
|
|
<ol>
|
|
|
|
{{ range $p := .Parents }}
|
|
|
|
<li><a href="/edit/{{ $p.ID }}">{{ $p.Text }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2021-08-12 22:41:26 +00:00
|
|
|
<h1 class="title">{{ .TitleHTML }}</h1>
|
2020-07-05 18:34:36 +00:00
|
|
|
<form action="/save/" method="post">
|
|
|
|
<input type="hidden" name="p" value="{{ .Name }}"/>
|
|
|
|
{{ .Editor }}
|
|
|
|
</form>
|
2020-05-08 15:21:39 +00:00
|
|
|
|
2020-07-05 18:34:36 +00:00
|
|
|
{{ if .Backrefs }}
|
|
|
|
<div class="backrefs content">
|
|
|
|
<h3>Linked references</h3>
|
2020-05-16 19:02:19 +00:00
|
|
|
<ul>
|
2020-07-05 18:34:36 +00:00
|
|
|
{{ 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>
|
2020-05-16 20:27:48 +00:00
|
|
|
{{ end }}
|
2020-05-16 19:02:19 +00:00
|
|
|
</ul>
|
2020-07-05 18:34:36 +00:00
|
|
|
</div>
|
2020-05-16 19:02:19 +00:00
|
|
|
{{ end }}
|
2020-07-05 18:34:36 +00:00
|
|
|
</div>
|
|
|
|
|
2020-10-14 13:35:36 +00:00
|
|
|
<div class="column is-hidden graph-view">
|
2020-07-19 13:09:15 +00:00
|
|
|
{{ if .ShowGraph }}
|
2020-09-03 13:42:34 +00:00
|
|
|
<div class="graph-network" data-name="{{ .Name }}" style="height:80vh; top:0; position: sticky"></div>
|
2020-07-19 13:09:15 +00:00
|
|
|
{{ end }}
|
2020-07-05 18:34:36 +00:00
|
|
|
</div>
|
2020-05-16 19:02:19 +00:00
|
|
|
</div>
|
2020-05-08 15:21:39 +00:00
|
|
|
{{ end }}
|
2018-11-24 12:34:51 +00:00
|
|
|
|
|
|
|
{{ define "content_head" }}
|
|
|
|
{{ end }}
|
2019-08-25 10:30:00 +00:00
|
|
|
|
|
|
|
{{ define "footer_scripts" }}
|
|
|
|
{{ end }}
|