honk/views/onts.html

18 lines
394 B
HTML

{{ template "header.html" . }}
<main>
<div class="info">
<p>ontologies of interest
{{ $firstrune := .FirstRune }}
{{ $letter := 0 }}
<ul>
{{ range .Onts }}
{{ if not (eq $letter (call $firstrune .Name)) }}
{{ $letter = (call $firstrune .Name) }}
<li><p>
{{ end }}
<span style="white-space: nowrap;"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
{{ end }}
</ul>
</div>
</main>