blob: 688ce11c66983528ba48887cef70acc12bae76d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
## languages.html
<%inherit file="base.html"/>
<div class="left inner">
<h1>Summary</h1>
<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_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
|