wiki/templates/edit.html

53 lines
1.7 KiB
HTML
Raw Normal View History

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>
<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"}}
<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>
<h1 class="title">{{ .Title }}</h1>
<form action="/save/" method="post">
<input type="hidden" name="p" value="{{ .Name }}"/>
{{ .Editor }}
</form>
2020-05-08 15:21:39 +00:00
{{ 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>
2020-05-16 20:27:48 +00:00
{{ end }}
</ul>
</div>
{{ end }}
</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 }}
<div class="graph-network" data-name="{{ .Name }}" style="height:80vh; top:0; position: sticky"></div>
2020-07-19 13:09:15 +00:00
{{ end }}
</div>
</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 }}