aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-29 23:04:09 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-29 23:04:09 +0100
commite255712b5325165893534f128ce93aabf23d5518 (patch)
tree3b931fdc9fc7ec00559ff1982f8ddfaa0e134ed0 /source/templates
parentAdded /languages page which displays articles sorted by language. (diff)
downloadnewspipe-e255712b5325165893534f128ce93aabf23d5518.tar.gz
newspipe-e255712b5325165893534f128ce93aabf23d5518.tar.bz2
newspipe-e255712b5325165893534f128ce93aabf23d5518.zip
summary of languages in the database.
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/languages.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/templates/languages.html b/source/templates/languages.html
index 202f02c8..229dae17 100644
--- a/source/templates/languages.html
+++ b/source/templates/languages.html
@@ -1,6 +1,11 @@
## languages.html
<%inherit file="base.html"/>
<div class="left inner">
+ <ul>
+ %for language in articles_sorted_by_languages.keys():
+ <li>${language}: ${sum(map(len, articles_sorted_by_languages[language].values()))} articles</li>
+ %endfor
+ </ul>
%for language in articles_sorted_by_languages.keys():
<h1>${language}</h1>
%for feed in articles_sorted_by_languages[language]:
bgstack15