all repos — honk @ 72b41af4afe123bd7a6b644e8e86b7c2ab39ed8d

my fork of honk

views/onts.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>ontologies of interest
 5{{ $firstrune := .FirstRune }}
 6<ul>
 7<li><p>
 8{{ range .Pops }}
 9<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
10{{ end }}
11{{ $letter := 0 }}
12{{ range .Onts }}
13{{ if not (eq $letter (call $firstrune .Name)) }}
14{{ $letter = (call $firstrune .Name) }}
15<li><p>
16{{ end }}
17<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
18{{ end }}
19</ul>
20</div>
21</main>