aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-13 07:46:28 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-13 07:46:28 +0200
commite0cf0719ca84c8aab3e511e0b81b5d6e51b5c30c (patch)
tree31b0ce3d16198c8b1032459e0b82fe14d4a2356d /pyaggr3g470r/templates
parentAdded AUTHORS.rst file. (diff)
downloadnewspipe-e0cf0719ca84c8aab3e511e0b81b5d6e51b5c30c.tar.gz
newspipe-e0cf0719ca84c8aab3e511e0b81b5d6e51b5c30c.tar.bz2
newspipe-e0cf0719ca84c8aab3e511e0b81b5d6e51b5c30c.zip
Sort the list of feeds by number of unread artiles and alphabetically.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/home.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 14408f9a..8aa90267 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -12,10 +12,10 @@
{{ _('All feeds') }}
{% if not feed_id %}</b>{% endif %}
</a></li>
- {% for fid in unread %}
+ {% for fid, nbunread in unread|dictsort(by='value')|reverse %}
<li class="feed-menu"><a href="{{ gen_url(feed=fid) }}">
{% if feed_id == fid %}<b>{% endif %}
- <span class="badge pull-right">{{ unread[fid] }}</span>
+ <span class="badge pull-right">{{ nbunread }}</span>
{{ feeds[fid]|safe }}
{% if feed_id == fid %}</b>{% endif %}
</a></li>
@@ -27,7 +27,7 @@
<a href="/mark_as/unread/feed/{{ fid }}"><i class="glyphicon glyphicon-unchecked" title="{{ _('Mark this feed as unread') }}"></i></a>
</span></li>
{% endfor %}
- {% for fid, ftitle in feeds.items() if not fid in unread %}
+ {% for fid, ftitle in feeds|dictsort(case_sensitive=False, by='value') if not fid in unread %}
<li class="feed-menu"><a href="{{ gen_url(feed=fid) }}">
{% if feed_id == fid %}<b>{% endif %}
{{ ftitle|safe }}
bgstack15