From 0c73f5cf321274e7f99f2ed86cb60c2c6a6a1451 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 14 Aug 2012 15:49:49 +0200 Subject: Dont issue more post request on read than necesarry, make show only new items the default database settings still need to be written though, simplified and cleaned up the feedlist code, html and css --- templates/part.items.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index 49423236c..486741f19 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -1,9 +1,15 @@ findAll($feedid); +$itemMapper = new OCA\News\ItemMapper(); + +$showOnlyUnread = true; // FIXME: get this from the settings db +if($showOnlyUnread){ + $items = $itemMapper->findAllStatus($feedId, OCA\News\StatusFlag::Unread); +} else { + $items = $itemMapper->findAll($feedId); +} echo '