aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:18:31 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-02 21:18:31 +0100
commitcac14625798dc35506a270fff7bbe50a29ddf0d7 (patch)
treea9e9a043938658c63de56e32bffa3f63cba42ad1 /source/templates
parentAdded summary (languages page) (diff)
downloadnewspipe-cac14625798dc35506a270fff7bbe50a29ddf0d7.tar.gz
newspipe-cac14625798dc35506a270fff7bbe50a29ddf0d7.tar.bz2
newspipe-cac14625798dc35506a270fff7bbe50a29ddf0d7.zip
added HTML anchor for languages
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/languages.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/templates/languages.html b/source/templates/languages.html
index 688ce11c..5d917e20 100644
--- a/source/templates/languages.html
+++ b/source/templates/languages.html
@@ -4,11 +4,11 @@
<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>
+ <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():
- <h1>${language}</h1>
+ <h1 id="${language}">${language}</h1>
%for feed_id in articles_sorted_by_languages[language]:
<%
feed = mongo.get_feed(feed_id)
bgstack15