all repos — honk @ 1a6d7ff9a8960ce83b3ec36be42317fe5f2ef88d

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<p>{{ range .Letters }}<a href="#{{.}}">{{.}}</a> {{ end }}
 6{{ $firstrune := .FirstRune }}
 7<ul>
 8<li><p>
 9{{ range .Pops }}
10<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
11{{ end }}
12{{ $letter := 0 }}
13{{ range .Onts }}
14{{ if not (eq $letter (call $firstrune .Name)) }}
15{{ $letter = (call $firstrune .Name) }}
16<li><p><a name="{{ printf "%c" $letter}}"></a>
17{{ end }}
18<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
19{{ end }}
20</ul>
21</div>
22</main>