diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-20 19:55:23 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-20 19:55:23 +0100 |
commit | c995c5b447cd32f4eb9f3cd9fc1865fd93962f24 (patch) | |
tree | 99390128e13da58b9f3059a4961fa4b2fb7c6cea /templates | |
parent | fae882f834409e18174e05d19deea39a3bf01e7b (diff) |
If a feed failed to update more than 10 times, show a hint in the web interface
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.navigation.feed.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/part.navigation.feed.php b/templates/part.navigation.feed.php index cbed3d84b..b2d48b46d 100644 --- a/templates/part.navigation.feed.php +++ b/templates/part.navigation.feed.php @@ -1,13 +1,15 @@ <li ng-class="{ active: Navigation.isFeedActive(feed.id), - unread: Navigation.isFeedUnread(feed.id) + unread: Navigation.isFeedUnread(feed.id), + updateerror: feed.updateErrorCount>10 }" ng-repeat="feed in Navigation.getFeedsOfFolder(<?php p($_['folderId']); ?>) | orderBy:['-pinned', 'title.toLowerCase()'] track by feed.url" ng-show="Navigation.isFeedUnread(feed.id) || Navigation.isShowAll() || Navigation.isFeedActive(feed.id) - || !feed.id" + || !feed.id + || feed.updateErrorCount>10" data-id="{{ feed.id }}" class="feed with-counter with-menu animate-show" news-draggable-disable="{{ @@ -31,7 +33,7 @@ ng-href="#/items/feeds/{{ feed.id }}/" class="title" ng-class="{'icon-rss': !feed.faviconLink}" - title="{{ feed.title }}"> + title="{{ feed.updateErrorCount > 10 ? '<?php p($l->t('Feed failed to update more than 10 times')); ?>': feed.title }}"> {{ feed.title }} </a> |