drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 307d3a110e84d2602018a709f4cb1c174b4f42b1
parent f252696e9c2a8186e6c5172418cb8449312568ac
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 17 Jan 2012 17:59:34 +0100

better display if no results were found

Diffstat:
TODO | 1-
templates/results.html | 10++++++++++
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -1 +0,0 @@ -si pas de réponse, afficher un message diff --git a/templates/results.html b/templates/results.html @@ -2,6 +2,7 @@ {% block body %} <div> +{% if result %} <table id="results" class="tablesorter"> <thead> <tr> @@ -39,6 +40,15 @@ {% endfor %} </tbody> </table> +{% else %} +<p> +{% if lang == 'fr' %} +Pas de résultats pour cette requête. :-( +{% else %} +No results for this query. :-( +{% endif %} +</p> +{% endif %} </div> {#<p class="page"> {% if page > 0 %}