diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-23 22:01:49 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-23 22:01:49 +0200 |
commit | 8b6fa6f5d51b29296b35100d526a75be4e946c26 (patch) | |
tree | 1198c25d6b4c680a66c21bd8cfa7953ea3c826cd /pyaggr3g470r/templates/home.html | |
parent | Merged in jaesivsm/pyaggr3g470r (pull request #12) (diff) | |
download | newspipe-8b6fa6f5d51b29296b35100d526a75be4e946c26.tar.gz newspipe-8b6fa6f5d51b29296b35100d526a75be4e946c26.tar.bz2 newspipe-8b6fa6f5d51b29296b35100d526a75be4e946c26.zip |
Just a try to get a more comprehensive counter of unread articles.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index a31d65e1..0b45996c 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -8,9 +8,9 @@ {% else %} <div id="affix-nav" class="col-md-3 sidebar hidden-xs hidden-sm"> <ul class="nav sidenav navbar-collapse pre-scrollable" data-offset-top="0" data-offset-bottom="0" style="min-height: 650px;"> - <li><a href="{{ gen_url(feed=0) }}"> + <li><a href="{{ gen_url(feed_id=0) }}"> {% if not feed_id %}<b>{% endif %} - {{ _('All feeds') }} <span id="total-unread" class="badge pull-right">{{ articles.__len__() }}</span> + {{ _('All feeds') }} <span id="total-unread" class="badge pull-right">{{ unread.items()|sum(attribute="1") }} / {{ articles.__len__() }}</span> {% if not feed_id %}</b>{% endif %} </a></li> {% for fid, nbunread in unread|dictsort(by='value')|reverse %} |