diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-23 22:42:13 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-23 22:42:13 +0200 |
commit | 561e3affc3ae7a2a2312a99d220dc24eff5906e1 (patch) | |
tree | c5144760f42ea26e0dba64d3d90d48a7d613f7f8 /pyaggr3g470r/templates | |
parent | Just a try to get a more comprehensive counter of unread articles. (diff) | |
download | newspipe-561e3affc3ae7a2a2312a99d220dc24eff5906e1.tar.gz newspipe-561e3affc3ae7a2a2312a99d220dc24eff5906e1.tar.bz2 newspipe-561e3affc3ae7a2a2312a99d220dc24eff5906e1.zip |
Display the ration only for the tab 'All'.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 0b45996c..82f23dfa 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -10,7 +10,11 @@ <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_id=0) }}"> {% if not feed_id %}<b>{% endif %} + {% if filter_=='all' %} {{ _('All feeds') }} <span id="total-unread" class="badge pull-right">{{ unread.items()|sum(attribute="1") }} / {{ articles.__len__() }}</span> + {% else %} + {{ _('All feeds') }} <span id="total-unread" class="badge pull-right">{{ articles.__len__() }}</span> + {% endif %} {% if not feed_id %}</b>{% endif %} </a></li> {% for fid, nbunread in unread|dictsort(by='value')|reverse %} |