aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-13 16:15:01 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-07-13 16:15:01 +0200
commit8ab04e490faa543ead1b6ae3001c42d540d0d6fb (patch)
treee79a68d7948012932a79fdece40f4e76ca680024 /pyaggr3g470r/templates
parentUpdated NEWS.rst. (diff)
downloadnewspipe-8ab04e490faa543ead1b6ae3001c42d540d0d6fb.tar.gz
newspipe-8ab04e490faa543ead1b6ae3001c42d540d0d6fb.tar.bz2
newspipe-8ab04e490faa543ead1b6ae3001c42d540d0d6fb.zip
It is useless to retrieve all articles in order to count the number of articles.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/feeds.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/feeds.html b/pyaggr3g470r/templates/feeds.html
index 4ccc3529..b511b357 100644
--- a/pyaggr3g470r/templates/feeds.html
+++ b/pyaggr3g470r/templates/feeds.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
- <h1>{{ _('You are subscribed to') }} {{ feeds.all()|count }} {{ _('feeds') }} &middot; {{ _('Add a') }} <a href="/create_feed">{{ _('feed') }}</a></h1>
+ <h1>{{ _('You are subscribed to') }} {{ feeds.count() }} {{ _('feeds') }} &middot; {{ _('Add a') }} <a href="/create_feed">{{ _('feed') }}</a></h1>
<div class="table-responsive">
<table class="table table-striped">
<thead>
@@ -27,7 +27,7 @@
</td>
<td><a href="/feed/{{ feed.id }}" {% if feed.description %}title="{{ feed.description }}"{% endif %}>{{ feed.title }}</a></td>
<td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td>
- <td>{{ feed.articles.all()|count }}</td>
+ <td>{{ feed.articles.count() }}</td>
<td>
<a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="{{ _('Articles') }}"></i></a>
<a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
bgstack15