Browse Source

Hide backrefs on editor page (are visible in sidebar)

master
Peter Stuifzand 9 months ago
parent
commit
a2c83d87b6
  1. 17
      templates/edit.html

17
templates/edit.html

@ -18,23 +18,6 @@ @@ -18,23 +18,6 @@
<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 }}

Loading…
Cancel
Save