aboutsummaryrefslogtreecommitdiff
path: root/source/templates/feed.html
diff options
context:
space:
mode:
Diffstat (limited to 'source/templates/feed.html')
-rw-r--r--source/templates/feed.html8
1 files changed, 3 insertions, 5 deletions
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
%>
<div class="left inner">
<p>The feed <b>${feed['feed_title']}</b> contains <b>${nb_articles_feed}</b> articles.
- Representing ${(round(nb_articles_feed / nb_articles_total, 4)) * 100} percent of the total (${nb_articles_total}).</p>
+ Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${nb_articles_total}).</p>
%if articles:
<p>${(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]}.</p>
@@ -17,10 +17,8 @@ import utils
%endif
%if articles != []:
- <p>The last article was posted ${delta_today.days} day(s) ago.</p>
- %if delta_today.days > 0:
- <p>Daily average: ${average}, between the ${first_post_date} and the ${end_post_date}.</p>
- %endif
+ <p>The last article was posted ${elapsed.days} day(s) ago.</p>
+ <p>Daily average: ${average}, between the ${first_post_date} and the ${end_post_date}.</p>
<br />
bgstack15