aboutsummaryrefslogtreecommitdiff
path: root/source/templates/languages.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:09:58 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:09:58 +0100
commit57f509edbb188252043bf73fa80c96f99062c321 (patch)
tree63772c2782e4091c8be2473212b0f2de37a32f83 /source/templates/languages.html
parentThe id of the feed is used as key of the dictionary. (diff)
downloadnewspipe-57f509edbb188252043bf73fa80c96f99062c321.tar.gz
newspipe-57f509edbb188252043bf73fa80c96f99062c321.tar.bz2
newspipe-57f509edbb188252043bf73fa80c96f99062c321.zip
Display only the last 10 articles by feed for the /languages page.
Diffstat (limited to 'source/templates/languages.html')
-rw-r--r--source/templates/languages.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/templates/languages.html b/source/templates/languages.html
index 46266e98..d27b9d46 100644
--- a/source/templates/languages.html
+++ b/source/templates/languages.html
@@ -13,7 +13,7 @@
feed = mongo.get_feed(feed_id)
%>
<h2>${feed["feed_title"]}</h2>
- %for article in articles_sorted_by_languages[language][feed_id]:
+ %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
bgstack15