news/templates/part.listfeed.php

55 строки
1.5 KiB
PHP

<li ng-class="{
active: feedBusinessLayer.isActive(feed.id),
unread: feedBusinessLayer.getUnreadCount(feed.id) > 0,
failed: feed.error
}"
ng-repeat="feed in feedBusinessLayer.getFeedsOfFolder(<?php p($_['folderId']); ?>) | orderBy:'id':true"
ng-show="feedBusinessLayer.isVisible(feed.id) || !feed.id"
data-id="{{ feed.id }}"
class="feed"
oc-draggable="{
revert: true,
stack: '> li',
zIndex: 1000,
axis: 'y',
helper: 'clone'
}">
<a ng-style="{ backgroundImage: feed.faviconLink }"
ng-click="feedBusinessLayer.load(feed.id)"
ng-class="{
'progress-icon': !feed.id,
'problem-icon': feed.error
}"
href="#"
class="title">
{{ feed.title }}
</a>
<span class="utils">
<span class="unread-counter"
ng-show="feed.id && feedBusinessLayer.getUnreadCount(feed.id) > 0">
{{ feedBusinessLayer.getUnreadCount(feed.id) }}
</span>
<button class="svg action mark-read-icon"
ng-show="feedBusinessLayer.getUnreadCount(feed.id) > 0 && feed.id"
ng-click="feedBusinessLayer.markFeedRead(feed.id)"
title="<?php p($l->t('Mark all read')); ?>"> </button>
<button ng-click="feedBusinessLayer.delete(feed.id)"
class="svg action delete-icon"
title="<?php p($l->t('Delete feed')); ?>"
ng-show="feed.id"></button>
<button class="svg action delete-icon"
ng-click="feedBusinessLayer.markErrorRead(feed.urlHash)"
title="<?php p($l->t('Delete website')); ?>"
ng-show="feed.error"></button>
</span>
<div class="message" ng-show="feed.error">{{ feed.error }}</div>
</li>