summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/fields.html8
-rw-r--r--tmpl/terms.html6
2 files changed, 7 insertions, 7 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html
index 944a43e6..2794484c 100644
--- a/tmpl/fields.html
+++ b/tmpl/fields.html
@@ -44,12 +44,16 @@
{{#*inline "furigana"}}
{{~#if html~}}
- {{~#if definition.reading}}<ruby>{{definition.expression}}<rt>{{definition.reading}}</rt></ruby>{{else}}{{definition.expression}}{{/if~}}
+ {{#furigana}}{{{definition}}}{{/furigana}}
{{~else~}}
- {{~#if definition.reading}}{{definition.expression}} [{{definition.reading}}]{{else}}{{definition.expression}}{{/if~}}
+ {{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
{{~/if~}}
{{/inline}}
+{{#*inline "furigana-plain"}}
+ {{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
+{{/inline}}
+
{{#*inline "glossary"}}
{{~#if html}}<div style="text-align: left;">{{/if~}}
{{~#if modeKanji~}}
diff --git a/tmpl/terms.html b/tmpl/terms.html
index db36e5cc..ffe52ab8 100644
--- a/tmpl/terms.html
+++ b/tmpl/terms.html
@@ -31,11 +31,7 @@
<img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
</div>
- {{#if reading}}
- <div class="expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div>
- {{else}}
- <div class="expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
- {{/if}}
+ <div class="expression">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</div>
{{#if reasons}}
<div class="reasons">