all repos — honk @ b602d33e4b4c03dc9a1a172ec4a850152d4bc11b

my fork of honk

views/onts.html (view raw)

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