summaryrefslogtreecommitdiffstats
path: root/templates/part.navigation.unreadfeed.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 15:09:34 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 15:09:34 +0200
commit03baa5ba68daa09110940c416b3cb065a9e9ca7a (patch)
treee4d76db78c422df49901733234814fcf08354234 /templates/part.navigation.unreadfeed.php
parent319a6f848d6a28dfb44320e02bde0b3fab6c6bc3 (diff)
reorganize templates
Diffstat (limited to 'templates/part.navigation.unreadfeed.php')
-rw-r--r--templates/part.navigation.unreadfeed.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/part.navigation.unreadfeed.php b/templates/part.navigation.unreadfeed.php
new file mode 100644
index 000000000..979824d1c
--- /dev/null
+++ b/templates/part.navigation.unreadfeed.php
@@ -0,0 +1,34 @@
+<li ng-class="{
+ active: Navigation.isSubscriptionsActive(),
+ unread: Navigation.getUnreadCount() > 0
+ }"
+ class="has-counter has-menu">
+
+ <a class="icon-rss" ng-href="#/items/" ng-if="!Navigation.isShowAll()">
+ <?php p($l->t('Unread articles'))?>
+ </a>
+
+ <a class="icon-rss" ng-href="#/items/" ng-if="Navigation.isShowAll()">
+ <?php p($l->t('All articles'))?>
+ </a>
+
+ <div class="app-navigation-entry-utils">
+ <ul>
+ <li class="app-navigation-entry-utils-counter"
+ ng-show="Navigation.getUnreadCount() > 0">
+ {{ Navigation.getUnreadCount() | unreadCountFormatter }}
+ </li>
+ <li class="app-navigation-entry-utils-menu-button"><button ng-click="optionsId = (optionsId == 'all' ? -1 : 'all')"></button></li>
+ </ul>
+ </div>
+
+ <div class="app-navigation-entry-menu">
+ <ul>
+ <li><button class="icon-checkmark"
+ title="<?php p($l->t('Read all')); ?>"
+ ng-click="Navigation.markRead()"></button>
+ </li>
+ </ul>
+ </div>
+
+</li> \ No newline at end of file