summaryrefslogtreecommitdiffstats
path: root/templates/part.navigation.feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.navigation.feed.php')
-rw-r--r--templates/part.navigation.feed.php96
1 files changed, 96 insertions, 0 deletions
diff --git a/templates/part.navigation.feed.php b/templates/part.navigation.feed.php
new file mode 100644
index 000000000..b8d81faa0
--- /dev/null
+++ b/templates/part.navigation.feed.php
@@ -0,0 +1,96 @@
+<li ng-class="{
+ active: Navigation.isFeedActive(feed.id),
+ unread: Navigation.getFeedUnreadCount(feed.id) > 0
+ }"
+ ng-repeat="feed in Navigation.getFeedsOfFolder(<?php p($_['folderId']); ?>) | orderBy:'id':true track by feed.url"
+ ng-show="Navigation.getFeedUnreadCount(feed.id) > 0
+ || Navigation.isShowAll()
+ || Navigation.isFeedActive(feed.id)
+ || !feed.id"
+ data-id="{{ feed.id }}"
+ class="feed with-counter with-menu"
+ news-draggable-disable="{{ feed.error.length > 0 || !feed.id || feed.deleted || feed.editing}}"
+ news-draggable="{
+ stack: '> li',
+ zIndex: 1000,
+ axis: 'y',
+ delay: 200,
+ containment: '#app-navigation ul',
+ scroll: true,
+ revert: true
+ }">
+
+ <a ng-style="{ backgroundImage: 'url(' + feed.faviconLink + ')'}"
+ ng-show="!feed.editing && !feed.deleted && !feed.error && feed.id"
+ ng-href="#/items/feeds/{{ feed.id }}/"
+ class="title"
+ ng-class="{'icon-rss': !feed.faviconLink}"
+ title="{{ feed.title }}">
+ {{ feed.title }}
+ </a>
+
+ <a ng-hide="feed.id || feed.error"
+ class="entry-loading title"
+ title="{{ feed.title }}">
+ {{ feed.title }}
+ </a>
+
+ <div ng-if="feed.deleted"
+ class="app-navigation-entry-deleted"
+ news-timeout="Navigation.deleteFeed(feed)">
+ <div class="app-navigation-entry-deleted-description"><?php p($l->t('Deleted feed')); ?> {{ feed.title }}</div>
+ <button class="icon-history app-navigation-entry-deleted-button"
+ title="<?php p($l->t('Undo delete feed')); ?>"
+ ng-click="Navigation.undoDeleteFeed(feed)"></button>
+ </div>
+
+ <div ng-if="feed.editing" class="app-navigation-entry-edit">
+ <form ng-submit="Navigation.renameFeed(feed)">
+ <input name="feedRename"
+ type="text"
+ ng-model="feed.title"
+ news-auto-focus
+ required>
+ <input type="submit"
+ value=""
+ title="<?php p($l->t('Rename')); ?>"
+ class="action icon-checkmark">
+ </form>
+ </div>
+
+ <div class="app-navigation-entry-utils"
+ ng-show="feed.id && !feed.editing && !feed.error && !feed.deleted">
+ <ul>
+ <li class="app-navigation-entry-utils-counter"
+ ng-show="feed.id && Navigation.getFeedUnreadCount(feed.id) > 0">
+ {{ Navigation.getFeedUnreadCount(feed.id) | unreadCountFormatter }}
+ </li>
+ <li class="app-navigation-entry-utils-menu-button">
+ <button title="<?php p($l->t('Menu')); ?>"></button>
+ </li>
+ </ul>
+ </div>
+
+ <div class="app-navigation-entry-menu">
+ <ul>
+ <li><button ng-click="feed.editing=true"
+ class="icon-rename"
+ title="<?php p($l->t('Rename feed')); ?>"></button></li>
+ <li><button ng-click="Navigation.reversiblyDeleteFeed(feed)"
+ class="icon-delete"
+ title="<?php p($l->t('Delete feed')); ?>"></button></li>
+ <li ng-show="Navigation.getFeedUnreadCount(feed.id) > 0"><button class="icon-checkmark"
+ ng-click="Navigation.markFeedRead(feed.id)"
+ title="<?php p($l->t('Read all')); ?>"></button></li>
+ </ul>
+ </div>
+
+ <div class="error-message" ng-show="feed.error">
+ <h2 class="title">{{ feed.url }}</h2>
+ <span class="message">{{ feed.error }}</span>
+ <button type="button "
+ title="<?php p($l->t('Dismiss')); ?>"
+ ng-click="Navigation.deleteFeed(feed)"></button>
+ </div>
+</li>
+