yomichan/util/tmpl/term.html
2016-04-16 11:41:33 -07:00

32 lines
564 B
HTML

{{#if reading}}
<div class="expression"><ruby>{{expression}}<rt>{{reading}}</rt></ruby></div>
{{else}}
<div class="expression">{{expression}}</div>
{{/if}}
{{#if rules}}
<div class="rules">
{{#each rules}}
{{.}} {{#unless @last}}&laquo;{{/unless}}
{{/each}}
&laquo;
{{source}}
</div>
{{/if}}
{{#if tags}}
<div class="tags">
{{#each tags}}
{{.}}{{#unless @last}},{{/unless}}
{{/each}}
</div>
{{/if}}
<div class="glossary">
<ol>
{{#each glossary}}
<li><span>{{.}}</span></li>
{{/each}}
</ol>
</div>