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

This commit is contained in:
Peter Stuifzand 2021-09-25 21:03:38 +02:00
parent f8a94455cd
commit a2c83d87b6

View File

@ -18,23 +18,6 @@
<input type="hidden" name="p" value="{{ .Name }}"/> <input type="hidden" name="p" value="{{ .Name }}"/>
{{ .Editor }} {{ .Editor }}
</form> </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>
</div> </div>
{{ end }} {{ end }}