From d88d39660816f412f0f1f81841c327efe4cd3e30 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 28 Mar 2013 10:35:05 +0100 Subject: Added the case when the feed is empty for the /articles view. --- source/static/templates/articles.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/static/templates') diff --git a/source/static/templates/articles.html b/source/static/templates/articles.html index cbba2508..4637822f 100644 --- a/source/static/templates/articles.html +++ b/source/static/templates/articles.html @@ -14,7 +14,11 @@ import utils

Articles of the feed ${feed['feed_title']}

-
+ %if articles.count() == 0: +

No articles yet.

+ %else: +
+ %endif %for article in articles: <% if article["article_readed"] == False: @@ -36,4 +40,4 @@ import utils ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${not_read_begin}${article["article_title"][:150]}${not_read_end}${description}
%endfor -

All feeds

\ No newline at end of file +

All feeds

-- cgit