summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
commit70ff47a9b77797e75137ba02f0b7df9bc2745f56 (patch)
treeaef60c640494dc3996ae565ce6f4b74cc2dee572 /templates
parent5323fa1fb1bd43ef653a91f5bba6d63cd18078f3 (diff)
fix # 848
Diffstat (limited to 'templates')
-rw-r--r--templates/part.navigation.feed.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/part.navigation.feed.php b/templates/part.navigation.feed.php
index 7705294aa..c6ee7e32c 100644
--- a/templates/part.navigation.feed.php
+++ b/templates/part.navigation.feed.php
@@ -3,7 +3,7 @@
unread: Navigation.isFeedUnread(feed.id)
}"
ng-repeat="feed in Navigation.getFeedsOfFolder(<?php p($_['folderId']); ?>)
- | orderBy:'title.toLowerCase()' track by feed.url"
+ | orderBy:['-pinned', 'title.toLowerCase()'] track by feed.url"
ng-show="Navigation.isFeedUnread(feed.id)
|| Navigation.isShowAll()
|| Navigation.isFeedActive(feed.id)
@@ -85,6 +85,16 @@
<div class="app-navigation-entry-menu">
<ul>
<li>
+ <button ng-click="Navigation.togglePinned(feed.id)"
+ ng-show="feed.pinned"
+ class="icon-pinned"
+ title="<?php p($l->t('Unpin feed from the top')); ?>">
+ </button>
+ <button ng-click="Navigation.togglePinned(feed.id)"
+ ng-hide="feed.pinned"
+ class="icon-unpinned"
+ title="<?php p($l->t('Pin feed to the top')); ?>">
+ </button>
<button ng-click="Navigation.setOrdering(feed, 1)"
ng-show="feed.ordering == 0"
class="icon-caret-dark feed-no-ordering"