From f39323126dd9fbd960f05344a75285d4915b1919 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 18 Mar 2017 09:48:53 -0700 Subject: cleanup --- tmpl/kanji.html | 32 ++++++++++++------------- tmpl/model.html | 2 +- tmpl/terms.html | 72 ++++++++++++++++++++++++++++----------------------------- 3 files changed, 53 insertions(+), 53 deletions(-) (limited to 'tmpl') diff --git a/tmpl/kanji.html b/tmpl/kanji.html index 8f52eb4a..4bb524cf 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -2,10 +2,10 @@
{{#if addable}} - + {{/if}} {{#if source}} - + {{/if}}
@@ -17,7 +17,7 @@ Kunyomi: {{#each kunyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} @@ -25,7 +25,7 @@ Onyomi: {{#each onyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} @@ -34,29 +34,29 @@
{{#each tags}} - {{name}} + {{name}} {{/each}}
{{#if glossary.[1]}} -
    - {{#each glossary}} -
  1. {{#multiLine}}{{.}}{{/multiLine}}
  2. - {{/each}} -
+
    + {{#each glossary}} +
  1. {{#multiLine}}{{.}}{{/multiLine}}
  2. + {{/each}} +
{{else}} -
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
+
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
{{/if}}
{{/inline}} {{#if definitions}} - {{#each definitions}} - {{#unless @first}}
{{/unless}} - {{> kanji addable=../addable source=../source root=../root}} - {{/each}} +{{#each definitions}} +{{#unless @first}}
{{/unless}} +{{> kanji addable=../addable source=../source root=../root}} +{{/each}} {{else}} -

No results found.

+

No results found.

{{/if}} diff --git a/tmpl/model.html b/tmpl/model.html index acff44a0..94772316 100644 --- a/tmpl/model.html +++ b/tmpl/model.html @@ -9,7 +9,7 @@ diff --git a/tmpl/terms.html b/tmpl/terms.html index 22209f9b..fa32cea1 100644 --- a/tmpl/terms.html +++ b/tmpl/terms.html @@ -1,71 +1,71 @@ {{#*inline "definition"}} - {{#if tags}} -
- {{#each tags}} - {{name}} - {{/each}} -
- {{/if}} - {{#if glossary.[1]}} - - {{else}} -
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
- {{/if}} +{{#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}}
+
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}{{reading}}
{{else}} -
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
+
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}
{{/if}} {{#if reasons}} -
- {{#each reasons}} - {{.}} {{#unless @last}}«{{/unless}} - {{/each}} -
+
+ {{#each reasons}} + {{.}} {{#unless @last}}«{{/unless}} + {{/each}} +
{{/if}}
- {{#if grouped}} + {{#if grouped}} {{#if definitions.[1]}}
    {{#each definitions}} -
  1. {{> definition}}
  2. +
  3. {{> definition}}
  4. {{/each}}
{{else}} - {{> definition definitions.[0]}} + {{> definition definitions.[0]}} {{/if}} - {{else}} + {{else}} {{> definition}} - {{/if}} + {{/if}}
{{/inline}} {{#if definitions}} - {{#each definitions}} - {{#unless @first}}
{{/unless}} - {{> term grouped=../grouped addable=../addable playback=../playback}} - {{/each}} +{{#each definitions}} +{{#unless @first}}
{{/unless}} +{{> term grouped=../grouped addable=../addable playback=../playback}} +{{/each}} {{else}} -

No results found.

+

No results found.

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