From 193dbc7d1d75c6584fa9ff6d55570a5fa36c0112 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 30 Dec 2012 11:12:53 +0100 Subject: Minor improvements to the /feed page. --- source/templates/feed.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/templates/feed.html') diff --git a/source/templates/feed.html b/source/templates/feed.html index 8d0871c1..2edda630 100644 --- a/source/templates/feed.html +++ b/source/templates/feed.html @@ -5,7 +5,7 @@ import utils %>

The feed ${feed['feed_title']} contains ${nb_articles_feed} articles. - Representing ${(round(nb_articles_feed / nb_articles_total, 4)) * 100} percent of the total (${nb_articles_total}).

+ Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${nb_articles_total}).

%if articles:

${(nb_unread_articles_feed == 0 and ["All articles are read"] or [str(nb_unread_articles_feed) + " unread article" + (nb_unread_articles_feed == 1 and [""] or ["s"])[0]])[0]}.

@@ -17,10 +17,8 @@ import utils %endif %if articles != []: -

The last article was posted ${delta_today.days} day(s) ago.

- %if delta_today.days > 0: -

Daily average: ${average}, between the ${first_post_date} and the ${end_post_date}.

- %endif +

The last article was posted ${elapsed.days} day(s) ago.

+

Daily average: ${average}, between the ${first_post_date} and the ${end_post_date}.


-- cgit