aboutsummaryrefslogtreecommitdiff
path: root/source/static/templates/languages.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:20:00 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:20:00 +0100
commit9a6fe2bf696c4c364518159735f4f5d12c666681 (patch)
treec540d7d1cf76542627673ef36490c641bb02f50f /source/static/templates/languages.html
parentUpdated revision date (diff)
downloadnewspipe-9a6fe2bf696c4c364518159735f4f5d12c666681.tar.gz
newspipe-9a6fe2bf696c4c364518159735f4f5d12c666681.tar.bz2
newspipe-9a6fe2bf696c4c364518159735f4f5d12c666681.zip
Reaorganization of folders for the CSS, templates and pictures.
Diffstat (limited to 'source/static/templates/languages.html')
-rw-r--r--source/static/templates/languages.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/static/templates/languages.html b/source/static/templates/languages.html
new file mode 100644
index 00000000..d186677d
--- /dev/null
+++ b/source/static/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
bgstack15