summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/news.css2
-rw-r--r--js/menu.js2
-rw-r--r--templates/part.feeds.php1
3 files changed, 3 insertions, 2 deletions
diff --git a/css/news.css b/css/news.css
index 146bcb72b..c67fef7d9 100644
--- a/css/news.css
+++ b/css/news.css
@@ -73,7 +73,7 @@ div.add_parentfolder {
font-size: 9pt;
}
- #feeds .feed:hover .unread_items_counter, #feeds .feed.all_read .unread_items_counter {
+ #feeds li:hover > .unread_items_counter, #feeds .all_read > .unread_items_counter {
display: none;
}
diff --git a/js/menu.js b/js/menu.js
index 2b986afac..2d60d9e87 100644
--- a/js/menu.js
+++ b/js/menu.js
@@ -841,7 +841,7 @@ var News = News || {};
Menu.prototype._applyUnreadCountStyle = function(type, id, unreadCount) {
var $node = this._getNodeFromTypeAndId(type, id);
- if(type === MenuNodeType.Feed){
+ if(type !== MenuNodeType.Folder){
$node.children('.unread_items_counter').html(unreadCount);
}
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index c2b129ee8..553e45f74 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -46,6 +46,7 @@ $starredCount = $_['starredCount'];
<li class="subscriptions <?php if($lastViewedFeedType == OCA\News\FeedType::SUBSCRIPTIONS) { echo "active"; }; ?>">
<a class="title" href="#" ><?php echo $l->t('New articles'); ?></a>
+ <span class="unread_items_counter"><?php echo $starredCount ?></span>
<span class="buttons">
<button class="svg action feeds_markread" title="<?php echo $l->t('Mark all read'); ?>"></button>
</span>