summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-12 01:29:09 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-12 01:29:09 +0100
commit5fa3d41316a583c4d436b327a0d2044093dffa12 (patch)
tree0807f959aee0c33251782487e44868b7b8b27c48 /templates
parent8ac2aa3748ece701949b68d447fad35cbeec47f9 (diff)
brought back unread and starred feeds
Diffstat (limited to 'templates')
-rw-r--r--templates/part.feed.starred.php17
-rw-r--r--templates/part.feed.unread.php11
2 files changed, 9 insertions, 19 deletions
diff --git a/templates/part.feed.starred.php b/templates/part.feed.starred.php
index 411c9469c..1d96d9fe8 100644
--- a/templates/part.feed.starred.php
+++ b/templates/part.feed.starred.php
@@ -1,17 +1,8 @@
-<li ng-class="{
- active: isFeedActive(feedType.Starred, 0),
- all_read: getUnreadCount(feedType.Starred, 0)==0
- }"
- class="starred-icon"
+<li ng-class="{ active: isFeedActive(feedType.Starred, 0) }"
ng-show="isShown(feedType.Starred, 0)">
- <a class="title"
- href="#"
- ng-click="loadFeed(feedType.Starred, 0)">
+ <a class="starred-icon"
+ href="#"
+ ng-click="loadFeed(feedType.Starred, 0)">
<?php p($l->t('Starred')) ?>
</a>
- <span class="utils">
- <span class="unread_items_counter">
- {{ getUnreadCount(feedType.Starred, 0) }}
- </span>
- </span>
</li> \ No newline at end of file
diff --git a/templates/part.feed.unread.php b/templates/part.feed.unread.php
index 795ef3c2d..559a96a90 100644
--- a/templates/part.feed.unread.php
+++ b/templates/part.feed.unread.php
@@ -1,20 +1,19 @@
<li ng-class="{
active: isFeedActive(feedType.Subscriptions, 0),
- all_read: getUnreadCount(feedType.Subscriptions, 0)==0
+ unread: getUnreadCount(feedType.Subscriptions, 0)!=0
}"
- class="subscriptions"
ng-show="isShown(feedType.Subscriptions, 0)">
- <a class="title"
+ <a class="rss-icon"
href="#"
ng-click="loadFeed(feedType.Subscriptions, 0)">
<?php p($l->t('New articles'))?>
</a>
<span class="utils">
- <span class="unread-counter">
- {{ getUnreadCount(feedType.Starred, 0) }}
- </span>
<button class="svg action mark-read-icon"
ng-click="markAllRead(feedType.Subscriptions, 0)"
title="<?php p($l->t('Mark all read')) ?>"></button>
+ <span class="unread-counter">
+ {{ getUnreadCount(feedType.Subscriptions, 0) }}
+ </span>
</span>
</li> \ No newline at end of file