From 53a8e9061c482400186c8b041be520a519795c07 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 8 Jan 2017 18:10:38 -0800 Subject: styling --- tmpl/kanji.html | 6 +++--- tmpl/term-grouped-list.html | 7 +++++++ tmpl/term-grouped.html | 50 +++++++++++++++++++++++++++++++++++++++++++++ tmpl/term.html | 2 +- 4 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 tmpl/term-grouped-list.html create mode 100644 tmpl/term-grouped.html (limited to 'tmpl') diff --git a/tmpl/kanji.html b/tmpl/kanji.html index eda8b8e4..a14fff78 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -36,13 +36,13 @@
{{#if glossary.[1]}} -
    +
      {{#each glossary}} -
    1. {{.}}
    2. +
    3. {{.}}
    4. {{/each}}
    {{else}} -

    {{glossary.[0]}}

    +
    {{glossary.[0]}}
    {{/if}}
diff --git a/tmpl/term-grouped-list.html b/tmpl/term-grouped-list.html new file mode 100644 index 00000000..6156ab7b --- /dev/null +++ b/tmpl/term-grouped-list.html @@ -0,0 +1,7 @@ +{{#if definitions}} + {{#each definitions}} + {{> term-grouped.html addable=../addable playback=../playback}} + {{/each}} +{{else}} +

No results found

+{{/if}} diff --git a/tmpl/term-grouped.html b/tmpl/term-grouped.html new file mode 100644 index 00000000..ac15a126 --- /dev/null +++ b/tmpl/term-grouped.html @@ -0,0 +1,50 @@ +
+
+ {{#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}} + +
+
    + {{#each definitions}} +
  1. + {{#if tags}} +
    + {{#each tags}} + {{name}} + {{/each}} +
    + {{/if}} + {{#if glossary.[1]}} +
      + {{#each glossary}} +
    • {{.}}
    • + {{/each}} +
    + {{else}} +
    {{glossary.[0]}}
    + {{/if}} +
  2. + {{/each}} +
+
+
diff --git a/tmpl/term.html b/tmpl/term.html index b4d72d4b..a6ae2d26 100644 --- a/tmpl/term.html +++ b/tmpl/term.html @@ -31,7 +31,7 @@ {{#if glossary.[1]}}
    {{#each glossary}} -
  1. {{.}}
  2. +
  3. {{.}}
  4. {{/each}}
{{else}} -- cgit v1.2.3