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/term-list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tmpl/term-list.html') diff --git a/tmpl/term-list.html b/tmpl/term-list.html index d0b060c8..2088ac71 100644 --- a/tmpl/term-list.html +++ b/tmpl/term-list.html @@ -1,5 +1,9 @@ {{> header.html}} -{{#each definitions}} -{{> term.html addable=../addable root=../root options=../options sequence=../sequence}} -{{/each}} +{{#if definitions}} + {{#each definitions}} + {{> term.html addable=../addable root=../root options=../options sequence=../sequence}} + {{/each}} +{{else}} +

No results found

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