From f808221470b607996aa1554ebd15afa26bcfabd1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 22 Jan 2017 19:22:53 -0800 Subject: wip --- tmpl/terms.html | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 tmpl/terms.html (limited to 'tmpl/terms.html') diff --git a/tmpl/terms.html b/tmpl/terms.html new file mode 100644 index 00000000..aae365c7 --- /dev/null +++ b/tmpl/terms.html @@ -0,0 +1,71 @@ +{{#*inline "definition"}} + {{#if tags}} +
+ {{#each tags}} + {{name}} + {{/each}} +
+ {{/if}} + {{#if glossary.[1]}} + + {{else}} +
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
+ {{/if}} +{{/inline}} + +{{#*inline "term"}} +
+
+ {{#if addable}} + + + {{/if}} + {{#if playback}} + + {{/if}} +
+ + {{#if reading}} +
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}{{reading}}
+ {{else}} +
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
+ {{/if}} + + {{#if reasons}} +
+ {{#each reasons}} + {{.}} {{#unless @last}}«{{/unless}} + {{/each}} +
+ {{/if}} + +
+ {{#if grouped}} + {{#if definitions.[1]}} +
    + {{#each definitions}} +
  1. {{> definition}}
  2. + {{/each}} +
+ {{else}} + {{> definition definitions.[0]}} + {{/if}} + {{else}} + {{> definition}} + {{/if}} +
+
+{{/inline}} + +{{#if definitions}} + {{#each definitions}} + {{#unless @first}}
{{/unless}} + {{> term grouped=../grouped addable=../addable playback=../playback}} + {{/each}} +{{else}} +

No results found

+{{/if}} -- cgit v1.2.3