Hide backrefs on editor page (are visible in sidebar)
continuous-integration/drone/push Build is passing Details

master
Peter Stuifzand 3 years ago
parent f8a94455cd
commit a2c83d87b6

@ -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