aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/admin/user.html
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-05-28 15:27:21 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-02 15:34:16 +0200
commitbe33517445c787be0da5577da048d4b2d91452d4 (patch)
tree68f281bfb9464f52ea3db18510967613db686545 /pyaggr3g470r/templates/admin/user.html
parentaccelerating the feeds page (diff)
downloadnewspipe-be33517445c787be0da5577da048d4b2d91452d4.tar.gz
newspipe-be33517445c787be0da5577da048d4b2d91452d4.tar.bz2
newspipe-be33517445c787be0da5577da048d4b2d91452d4.zip
adding unread count when listing feeds, using count_by_feed for user management
Diffstat (limited to 'pyaggr3g470r/templates/admin/user.html')
-rw-r--r--pyaggr3g470r/templates/admin/user.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/admin/user.html b/pyaggr3g470r/templates/admin/user.html
index 317fef49..e50741ee 100644
--- a/pyaggr3g470r/templates/admin/user.html
+++ b/pyaggr3g470r/templates/admin/user.html
@@ -26,7 +26,7 @@
<th>{{ _('Name') }}</th>
<th>{{ _('Feed link') }}</th>
<th>{{ _('Site link') }}</th>
- <th>{{ _('Number of articles') }}</th>
+ <th>{{ _('(unread) articles') }}</th>
<th>{{ _('Actions') }}</th>
</tr>
</thead>
@@ -37,7 +37,7 @@
<td><a href="/feed/{{ feed.id }}">{{ feed.title }}</a></td>
<td>{{ feed.link }}</td>
<td>{{ feed.site_link }}</td>
- <td>{{ feed.articles.all()|count }}</td>
+ <td>( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }}</td>
<td>
<a href="{{ url_for("feed.feed", feed_id=feed.id) }}"><i class="glyphicon glyphicon-th-list" title="{{ _('Feed') }}"></i></a>
<a href="{{ url_for("feed.form", feed_id=feed.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
bgstack15