From d770bc17899b7e947252237e04a71075999c7f59 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Tue, 4 Aug 2015 18:17:10 +0200 Subject: refact feed list --- pyaggr3g470r/templates/admin/user.html | 35 +--------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'pyaggr3g470r/templates/admin') diff --git a/pyaggr3g470r/templates/admin/user.html b/pyaggr3g470r/templates/admin/user.html index 21bcd6b6..d1e08c0d 100644 --- a/pyaggr3g470r/templates/admin/user.html +++ b/pyaggr3g470r/templates/admin/user.html @@ -14,39 +14,6 @@ -
- {% if user.feeds.all()|count == 0 %} -

{{ _('This user is not subscribed to any feed.') }}

- {% else %} -

{{ _('Feeds') }}

- - - - - - - - - - - - - {% for feed in user.feeds|sort(attribute="title") %} - - - - - - - - {% endfor %} - -
#{{ _('Title') }}{{ _('Feed link') }}{{ _('Site link') }}{{ _('(unread) articles') }}{{ _('Actions') }}
{{ loop.index }}{%if feed.icon%}{%endif%}{{ feed.title }}{{ feed.link }}{{ feed.site_link }}( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }} - - - -
- {% endif %} -
+ {% include "feed_list.html" %} {% endblock %} -- cgit