summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCesar Enrique Garcia Dabo <enrique@engarda.org>2020-04-11 02:21:56 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-04-23 12:37:24 +0200
commit5b4f3d29e4800f12297092ba6b6813581de77169 (patch)
tree69a25e4c8d9468b91f7dd3f506532d6caca9555c /templates
parenta69ec8edd84511dfd760b6911ded8fdeea8c5aaa (diff)
Always show the unread articles.
The unread articles folder will always be visible, regardless of the "Show all" setting. If that setting is on, then an additional "All articles" folder will be show as before, but it doesn't substitute the "Uread articles" one. A new URL /apps/news/#/items/unread is also created that jumps to the unread articles. Signed-off-by: Cesar Enrique Garcia Dabo <cquike@arcor.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.navigation.unreadfeed.php41
1 files changed, 35 insertions, 6 deletions
diff --git a/templates/part.navigation.unreadfeed.php b/templates/part.navigation.unreadfeed.php
index a5de750d2..902365c68 100644
--- a/templates/part.navigation.unreadfeed.php
+++ b/templates/part.navigation.unreadfeed.php
@@ -4,14 +4,10 @@
}"
class="subscriptions-feed with-counter with-menu">
- <a class="icon-rss" ng-href="#/items/" ng-if="!Navigation.isShowAll()">
+ <a class="icon-rss" ng-href="#/items/unread" >
<?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" ng-show="Navigation.isUnread()">
<ul>
<li class="app-navigation-entry-utils-counter"
@@ -38,4 +34,37 @@
</ul>
</div>
-</li> \ No newline at end of file
+</li>
+
+<li ng-class="{
+ active: Navigation.isSubscriptionsActive(),
+ unread: Navigation.isUnread()
+ }"
+ class="all-subscriptions-feed with-counter with-menu">
+
+ <a class="icon-rss" ng-href="#/items/" ng-if="Navigation.isShowAll()">
+ <?php p($l->t('All articles'))?>
+ </a>
+
+ <div class="app-navigation-entry-utils" ng-if="Navigation.isShowAll()">
+ <ul>
+ <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" ng-if="navigation.isShowAll()">
+ <ul>
+ <li class="mark-read">
+ <button ng-click="Navigation.markRead()">
+ <span class="icon-checkmark"></span>
+ <span><?php p($l->t('Mark read')); ?></span>
+ </button>
+ </li>
+ </ul>
+ </div>
+
+</li>