aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/home.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-29 13:26:07 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-29 13:26:07 +0200
commitc3aa3555554f9017e4996c8e08d656e9d5bbd3a3 (patch)
tree5c895c01696cc08832a465efe24b9d2c228c3958 /pyaggr3g470r/templates/home.html
parentImproved read/unread JS function. (diff)
downloadnewspipe-c3aa3555554f9017e4996c8e08d656e9d5bbd3a3.tar.gz
newspipe-c3aa3555554f9017e4996c8e08d656e9d5bbd3a3.tar.bz2
newspipe-c3aa3555554f9017e4996c8e08d656e9d5bbd3a3.zip
Improved read/unread JS function.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r--pyaggr3g470r/templates/home.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 2a9fac48..a8b0e7bc 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -21,7 +21,7 @@
{% 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">{{ nbunread }}</span>
+ <span id="unread-{{ fid }}" class="badge pull-right">{{ nbunread }}</span>
{{ feeds[fid]|safe }}
{% if feed_id == fid %}</b>{% endif %}
</a></li>
@@ -50,7 +50,7 @@
</ul>
</div>
<div class="container col-md-9">
- <h1>{{ _('Articles') }} ({{ articles.__len__() }})</h1>
+ <h1>{{ _('Articles') }} (<span id="total-unread">{{ articles.__len__() }}</span>)</h1>
<div id="filters" data-filter="{{ filter_ }}">
{% if filter_ == 'all' %}<b>{% endif %}
<a href="{{ gen_url(filter_='all') }}">{{ _('All') }}</a>
bgstack15