From f2c092863e655d54f9fc25761850dd77edf3dc9b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 13 Dec 2012 23:01:35 +0100 Subject: Test if list of articles is not empty. --- source/templates/feed.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'source/templates/feed.html') diff --git a/source/templates/feed.html b/source/templates/feed.html index 5fc5d170..c5ca831c 100644 --- a/source/templates/feed.html +++ b/source/templates/feed.html @@ -90,6 +90,8 @@ Representing ${(round(float(nb_articles_feed) / nb_articles_total, 4)) * 100} pe %endfor ${html} %endif +%else: +

No articles yet.

%endif @@ -112,11 +114,12 @@ Representing ${(round(float(nb_articles_feed) / nb_articles_total, 4)) * 100} pe - -
-

Tag cloud

-
- Minimum size of a word: - -
-
${tag_cloud}
\ No newline at end of file +%if articles != []: +
+

Tag cloud

+
+ Minimum size of a word: + +
+
${tag_cloud}
+%endif \ No newline at end of file -- cgit