aboutsummaryrefslogtreecommitdiff
path: root/source/templates/languages.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:04:02 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:04:02 +0100
commitde9df587edfede9d54722e6bbadf7b63af26fd43 (patch)
treeb9ebb81082ffbf5d49e370e21da51da42db7cdb3 /source/templates/languages.html
parentAdded link to the article page (in the /languages page). (diff)
downloadnewspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.tar.gz
newspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.tar.bz2
newspipe-de9df587edfede9d54722e6bbadf7b63af26fd43.zip
The id of the feed is used as key of the dictionary.
Diffstat (limited to 'source/templates/languages.html')
-rw-r--r--source/templates/languages.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/templates/languages.html b/source/templates/languages.html
index 8d0ff3ce..46266e98 100644
--- a/source/templates/languages.html
+++ b/source/templates/languages.html
@@ -8,10 +8,13 @@
</ul>
%for language in articles_sorted_by_languages.keys():
<h1>${language}</h1>
- %for feed in articles_sorted_by_languages[language]:
- <h2>${feed}</h2>
- %for article in articles_sorted_by_languages[language][feed]:
- ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - <a href="/article/${feed}:${article['article_id']}" rel="noreferrer" target="_blank">${article["article_title"]}</a>
+ %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]:
+ ${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 />
bgstack15