summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-26 11:57:34 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-26 11:57:34 -0700
commit190c749527c5c5f8afec7ead6956a5f3d7c1a422 (patch)
tree2945b2c95657e71b1e99212d9646e6bd30961ab3 /tmpl
parent49f0243527e504aa3fe196bc6dc759b6948f8a0b (diff)
improved furigana support
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/fields.html16
-rw-r--r--tmpl/terms.html6
2 files changed, 2 insertions, 20 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html
index 8bd94dc0..df3f3a96 100644
--- a/tmpl/fields.html
+++ b/tmpl/fields.html
@@ -43,21 +43,7 @@
{{/inline}}
{{#*inline "furigana"}}
- {{~#if html~}}
- {{~#definition.furigana~}}
- {{~#if furigana~}}
- <ruby>{{text}}<rt>{{furigana}}</rt></ruby>
- {{~else~}}
- {{text}}
- {{/if~}}
- {{~/definition.furigana~}}
- {{~else~}}
- {{#definition.furigana}}
- {{~#furigana}} {{/furigana~}}
- {{text}}
- {{~#furigana}}[{{.}}]{{/furigana~}}
- {{/definition.furigana}}
- {{~/if~}}
+ {{#furigana}}{{{definition}}}{{/furigana}}
{{/inline}}
{{#*inline "glossary"}}
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">