From 3b83f8b7fef9978b79517aeda95fa89de071ba54 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 8 Jan 2017 19:03:48 -0800 Subject: styling --- tmpl/kanji-list.html | 3 ++- tmpl/kanji.html | 20 ++++++++++---------- tmpl/model.html | 2 +- tmpl/term-grouped-list.html | 4 ++-- tmpl/term-grouped.html | 26 +++++++++++++++----------- tmpl/term-list.html | 4 ++-- tmpl/term.html | 20 ++++++++++---------- 7 files changed, 42 insertions(+), 37 deletions(-) (limited to 'tmpl') diff --git a/tmpl/kanji-list.html b/tmpl/kanji-list.html index 0ee81463..1df22e68 100644 --- a/tmpl/kanji-list.html +++ b/tmpl/kanji-list.html @@ -1,6 +1,7 @@ {{#if definitions}} {{#each definitions}} - {{> kanji.html addable=../addable root=../root}} + {{#unless @first}}
{{/unless}} + {{> kanji.html addable=../addable root=../root}} {{/each}} {{else}}

No results found

diff --git a/tmpl/kanji.html b/tmpl/kanji.html index a14fff78..bb4ce61f 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -1,7 +1,7 @@
{{#if addable}} - + {{/if}}
@@ -13,7 +13,7 @@ Kunyomi: {{#each kunyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} @@ -21,7 +21,7 @@ Onyomi: {{#each onyomi}} - {{.}}{{#unless @last}}, {{/unless}} + {{.}}{{#unless @last}}, {{/unless}} {{/each}} @@ -30,19 +30,19 @@
{{#each tags}} - {{name}} + {{name}} {{/each}}
{{#if glossary.[1]}} -
    - {{#each glossary}} -
  1. {{.}}
  2. - {{/each}} -
+
    + {{#each glossary}} +
  1. {{.}}
  2. + {{/each}} +
{{else}} -
{{glossary.[0]}}
+
{{glossary.[0]}}
{{/if}}
diff --git a/tmpl/model.html b/tmpl/model.html index 94772316..acff44a0 100644 --- a/tmpl/model.html +++ b/tmpl/model.html @@ -9,7 +9,7 @@ diff --git a/tmpl/term-grouped-list.html b/tmpl/term-grouped-list.html index d927abc4..4bc9406c 100644 --- a/tmpl/term-grouped-list.html +++ b/tmpl/term-grouped-list.html @@ -1,7 +1,7 @@ {{#if definitions}} {{#each definitions}} - {{> term-grouped.html addable=../addable playback=../playback}} -
+ {{#unless @first}}
{{/unless}} + {{> term-grouped.html addable=../addable playback=../playback}} {{/each}} {{else}}

No results found

diff --git a/tmpl/term-grouped.html b/tmpl/term-grouped.html index 0de22bb9..93281ee9 100644 --- a/tmpl/term-grouped.html +++ b/tmpl/term-grouped.html @@ -1,33 +1,37 @@
{{#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 definitions.[1]}}
    {{#each definitions}} -
  1. {{> term-definition.html}}
  2. +
  3. {{> term-definition.html}}
  4. {{/each}}
+ {{else}} + {{> term-definition.html definitions.[0]}} + {{/if}}
diff --git a/tmpl/term-list.html b/tmpl/term-list.html index ab03c7c2..1315d132 100644 --- a/tmpl/term-list.html +++ b/tmpl/term-list.html @@ -1,7 +1,7 @@ {{#if definitions}} {{#each definitions}} - {{> term.html addable=../addable playback=../playback}} -
+ {{#unless @first}}
{{/unless}} + {{> term.html addable=../addable playback=../playback}} {{/each}} {{else}}

No results found

diff --git a/tmpl/term.html b/tmpl/term.html index 59ac80df..0e19dbf4 100644 --- a/tmpl/term.html +++ b/tmpl/term.html @@ -1,26 +1,26 @@
{{#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}}
-- cgit v1.2.3