mirror of
https://codeberg.org/aryak/mozhi
synced 2024-12-22 18:59:45 +05:30
42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
|
{{ if .Translation.WordChoices }}
|
||
|
<div id="definitions_and_translations">
|
||
|
<div class="translations">
|
||
|
{{ if or .Translation.TargetSynonyms .Translation.SourceSynonyms }}
|
||
|
<span class="def_type">Synonyms</span>
|
||
|
<ul>
|
||
|
{{ if .Translation.TargetSynonyms }}
|
||
|
<li>
|
||
|
<span class="syn_type">{{.Translation.OutputText}}</span>
|
||
|
<span class="syn">{{ range $index, $key := .Translation.TargetSynonyms }}{{ if eq $key "" }}{{ else }}{{ if eq $index 0 }}{{ else }}, {{ end }}{{.}}{{ end }}{{ end }}</span>
|
||
|
</li>
|
||
|
<br>
|
||
|
{{ end }}
|
||
|
{{ if .Translation.SourceSynonyms }}
|
||
|
<li>
|
||
|
<span class="syn_type">{{.OriginalText}}</span>
|
||
|
<span class="syn">{{ range $index, $key := .Translation.SourceSynonyms }}{{ if eq $key "" }}{{ else }}{{ if eq $index 0 }}{{ else }}, {{ end }}{{.}}{{ end }}{{ end }}</span>
|
||
|
</li>
|
||
|
<br>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
<div class="definitions">
|
||
|
{{ range $key := .Translation.WordChoices }}
|
||
|
<span class="def_type">{{ $key.Word }}</span>
|
||
|
<ol>
|
||
|
{{ range $index, $key2 := $key.ExamplesSource }}
|
||
|
<li>
|
||
|
<br>
|
||
|
<span class="use_in_sentence">{{ index $key.ExamplesSource $index }}</span>
|
||
|
<br>
|
||
|
<span class="use_in_sentence">{{ index $key.ExamplesTarget $index }}</span>
|
||
|
<br>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ol>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ end }}
|