From 895ed96f77a4526410722c90f455cd0cde62a606 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 4 Feb 2014 14:44:41 +0100 Subject: Give an idea of the importance of a feed compared to the whole database. --- pyaggr3g470r/templates/feed.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/templates/feed.html') diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index 1ad27947..93b67bd4 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -9,7 +9,8 @@

- This feed contains {{ feed.articles|count }} articles.
+ This feed contains {{ feed.articles|count }} articles + ({{ ((feed.articles|count * 100 ) / nb_articles) | round(2, 'floor') }}% of the database).
Address of the feed: {{ feed.link }}.
Address of the site: {{ feed.site_link }}.
{% if feed.articles|count != 0 %} -- cgit