From e0cf0719ca84c8aab3e511e0b81b5d6e51b5c30c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 13 Jun 2014 07:46:28 +0200 Subject: Sort the list of feeds by number of unread artiles and alphabetically. --- pyaggr3g470r/templates/home.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyaggr3g470r/templates/home.html') 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 %}{% endif %} - {% for fid in unread %} + {% for fid, nbunread in unread|dictsort(by='value')|reverse %}
  • {% if feed_id == fid %}{% endif %} - {{ unread[fid] }} + {{ nbunread }} {{ feeds[fid]|safe }} {% if feed_id == fid %}{% endif %}
  • @@ -27,7 +27,7 @@ {% 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 %}
  • {% if feed_id == fid %}{% endif %} {{ ftitle|safe }} -- cgit