forked from dict/alar.ink
13 lines
487 B
HTML
13 lines
487 B
HTML
{{ define "glossary-words" }}
|
|
{{ $g := .Data.Glossary }}
|
|
{{ if not $g.Words }}
|
|
<h2>{{ $.L.T "public.noResultsTitle" }}</h2>
|
|
<p>{{ $.L.T "public.noResults" }}</p>
|
|
{{ else }}
|
|
<ul class="noul words">
|
|
{{ range $i, $w := $g.Words }}
|
|
<li><a href="{{ $.Consts.RootURL }}/dictionary/{{ UnicodeURL $g.FromLang }}/{{ UnicodeURL $g.ToLang }}/{{ UnicodeURL (index $w.Content 0) }}">{{ $w.Content | join ", " }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ end }} |