From c2d70f1fd014cd626b3cff86ea008269c21b7e9e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 11 Jan 2013 22:12:24 +0100 Subject: Display the number of search results. --- source/templates/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/templates/search.html') diff --git a/source/templates/search.html b/source/templates/search.html index f2e846c0..da766ee9 100644 --- a/source/templates/search.html +++ b/source/templates/search.html @@ -5,7 +5,7 @@ import utils %>
%if len(search_result) != 0: -

Articles containing the string ${query}

+

Articles containing the string ${query} (${sum([articles.count() for articles in search_result.values()])} results)

%else:

String ${query} not found.

%endif -- cgit