diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-29 23:04:09 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-29 23:04:09 +0100 |
commit | e255712b5325165893534f128ce93aabf23d5518 (patch) | |
tree | 3b931fdc9fc7ec00559ff1982f8ddfaa0e134ed0 /source | |
parent | Added /languages page which displays articles sorted by language. (diff) | |
download | newspipe-e255712b5325165893534f128ce93aabf23d5518.tar.gz newspipe-e255712b5325165893534f128ce93aabf23d5518.tar.bz2 newspipe-e255712b5325165893534f128ce93aabf23d5518.zip |
summary of languages in the database.
Diffstat (limited to 'source')
-rw-r--r-- | source/templates/languages.html | 5 |
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]: |