From d95d607c19c0888ca96a693de541e2961bd8f4d9 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 13 Nov 2016 18:06:49 -0800 Subject: Handle no definitions --- tmpl/kanji-list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tmpl/kanji-list.html') diff --git a/tmpl/kanji-list.html b/tmpl/kanji-list.html index d418eafd..af38d485 100644 --- a/tmpl/kanji-list.html +++ b/tmpl/kanji-list.html @@ -1,5 +1,9 @@ {{> header.html}} -{{#each definitions}} -{{> kanji.html addable=../addable root=../root options=../options sequence=../sequence}} -{{/each}} +{{#if definitions}} + {{#each definitions}} + {{> kanji.html addable=../addable root=../root options=../options sequence=../sequence}} + {{/each}} +{{else}} +

No results found

+{{/if}} {{> footer.html}} -- cgit v1.2.3