summaryrefslogtreecommitdiffstats
path: root/templates/part.listfeed.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-15 09:51:12 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-15 09:51:12 -0400
commit04497e9e68516537244c359a06f29aa6b2afce08 (patch)
treeca50fbcf31f672fbe21848ddb43e733fe9c83bb6 /templates/part.listfeed.php
parent51bf7344a712d0ce140020e75099b11a8d007639 (diff)
shows counter when adding feed; fixes bug when removing folder
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r--templates/part.listfeed.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php
index 7d5c91afd..8b64a3846 100644
--- a/templates/part.listfeed.php
+++ b/templates/part.listfeed.php
@@ -3,14 +3,14 @@
$l = new OC_l10n('news');
$feed = isset($_['feed']) ? $_['feed'] : null;
-$unreadItems = isset($_['unreadItems']) ? $_['unreadItems'] : null;
+$unreadItemsCount = isset($_['unreadItemsCount']) ? $_['unreadItemsCount'] : null;
$favicon = $feed->getFavicon();
if ($favicon == null) {
$favicon = OCP\Util::imagePath('news', 'rss.svg');
}
-if($unreadItems == 0){
+if($unreadItemsCount == 0){
$allReadClass = 'all_read';
} else {
$allReadClass = '';
@@ -18,7 +18,7 @@ if($unreadItems == 0){
echo '<li class="feed" data-id="' . $feed->getId() . '">';
echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;" class="' . $allReadClass . '">' . $feed->getTitle() .'</a>';
- echo '<span class="unreaditemcounter ' . $allReadClass . '">' . $unreadItems . '</span>';
+ echo '<span class="unreaditemcounter ' . $allReadClass . '">' . $unreadItemsCount . '</span>';
echo '<button class="svg action feeds_edit" title="' . $l->t('Edit feed') . '"></button>';
echo '<button class="svg action feeds_delete" onClick="(News.Feed.delete(' . $feed->getId(). '))" title="' . $l->t('Delete feed') . '"></button>';
echo '</li>';