diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2014-06-12 01:50:08 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2014-06-12 01:50:08 +0200 |
commit | 189daeb5862dcf6d89e5070c019cd584c26e73a6 (patch) | |
tree | 88226ddc308f24eb102cc9a88c0cbcfb9f1d2dfa /pyaggr3g470r/templates | |
parent | aligning message box to the right (diff) | |
download | newspipe-189daeb5862dcf6d89e5070c019cd584c26e73a6.tar.gz newspipe-189daeb5862dcf6d89e5070c019cd584c26e73a6.tar.bz2 newspipe-189daeb5862dcf6d89e5070c019cd584c26e73a6.zip |
reimplementing the unread count in left menu
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/home.html (renamed from pyaggr3g470r/templates/reader.html) | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/reader.html b/pyaggr3g470r/templates/home.html index a2b4481c..96cd83a5 100644 --- a/pyaggr3g470r/templates/reader.html +++ b/pyaggr3g470r/templates/home.html @@ -7,7 +7,15 @@ {{ _('All feeds') }} {% if not feed_id %}</b>{% endif %} </a></li> - {% for fid, ftitle in feeds.items() %} + {% for fid in unread %} + <li><a href="{{ gen_url(feed=fid) }}"> + {% if feed_id == fid %}<b>{% endif %} + <span class="badge pull-right">{{ unread[fid] }}</span> + {{ feeds[fid]|safe }} + {% if feed_id == fid %}</b>{% endif %} + </a></li> + {% endfor %} + {% for fid, ftitle in feeds.items() if not fid in unread %} <li><a href="{{ gen_url(feed=fid) }}"> {% if feed_id == fid %}<b>{% endif %} {{ ftitle|safe }} |