diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-09-14 10:44:59 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-09-14 10:44:59 +0200 |
commit | 79dfa104623d51b7e0bdb411eadceda1747d0a20 (patch) | |
tree | 1542f86ee36a5606af0e9df70fea4e9f44b2060f /source/templates/languages.html | |
parent | The logo of the feed has been added to the feed management page (/feed). (diff) | |
download | newspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.tar.gz newspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.tar.bz2 newspipe-79dfa104623d51b7e0bdb411eadceda1747d0a20.zip |
Templates has been removed to the upper folder.
Diffstat (limited to 'source/templates/languages.html')
-rw-r--r-- | source/templates/languages.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/templates/languages.html b/source/templates/languages.html new file mode 100644 index 00000000..d186677d --- /dev/null +++ b/source/templates/languages.html @@ -0,0 +1,25 @@ +## languages.html +<%inherit file="base.html"/> +<div class="left inner"> + <h1>Summary</h1> + <ul> + %for language in articles_sorted_by_languages.keys(): + <li><a href="#${language}">${language}</a>: ${sum(map(len, articles_sorted_by_languages[language].values()))} articles</li> + %endfor + </ul> + %for language in articles_sorted_by_languages.keys(): + <br /> + <h1 id="${language}">${language}</h1> + %for feed_id in articles_sorted_by_languages[language]: + <% + feed = mongo.get_feed(feed_id) + %> + <h2>${feed["feed_title"]}</h2> + %for article in articles_sorted_by_languages[language][feed_id][:10]: + ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - <a href="/article/${feed['feed_id']}:${article['article_id']}" rel="noreferrer" target="_blank">${article["article_title"]}</a> + <br /> + %endfor + <br /> + %endfor + <br /> + %endfor
\ No newline at end of file |