diff options
Diffstat (limited to 'templates/part.items.php')
-rw-r--r-- | templates/part.items.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index 284a3e9a3..79b3457d5 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -1,17 +1,19 @@ <ul> <li class="feed_item" - ng-repeat="item in itemBl.getAll() | orderBy:'id':true " + ng-repeat="item in itemBusinessLayer.getAll() | orderBy:'id':true " ng-class="{ read: item.isRead() }" data-id="{{ item.id }}" data-feed="{{ item.feedId }}"> <h2 class="item_date"> - <time class="timeago" datetime="">{{ item.getRelativeDate() }}</time> + <span class="timeago" title="{{item.pubDate*1000|date:'dd-MM-yyyy'}}"> + {{ getRelativeDate(item.pubDate) }} + </span> </h2> <div class="utils"> <ul class="primary_item_utils"> <li ng-class="{ important: item.isStarred() }" - ng-click="itemBl.toggleStarred(item.id)" + ng-click="itemBusinessLayer.toggleStarred(item.id)" class="star" title="<?php p($l->t('Save for later')) ?>"> </li> @@ -19,15 +21,15 @@ </div> <h1 class="item_title"> - <a ng-click="itemBl.setRead(item.id)" + <a ng-click="itemBusinessLayer.setRead(item.id)" target="_blank" href="{{ item.url }}">{{ item.title }}</a> </h1> <h2 class="item_author"> - <span ng-show="itemBl.noFeedActive() && feedBl.getFeedLink(item.feedId)"> + <span ng-show="itemBusinessLayer.noFeedActive() && feedBusinessLayer.getFeedLink(item.feedId)"> <?php p($l->t('from')) ?> - <a target="_blank" href="{{ feedBl.getFeedLink(item.feedId) }}" - class="from_feed">{{ itemBl.getFeedTitle(item.id) }}</a> + <a target="_blank" href="{{ feedBusinessLayer.getFeedLink(item.feedId) }}" + class="from_feed">{{ itemBusinessLayer.getFeedTitle(item.id) }}</a> </span> <span ui-if="item.author"> <?php p($l->t('by')) ?> @@ -43,16 +45,16 @@ </div> <div class="body" - ng-click="itemBl.setRead(item.id)" + ng-click="itemBusinessLayer.setRead(item.id)" ng-bind-html-unsafe="item.body"> </div> <div class="bottom_utils"> <ul class="secondary_item_utils" - ng-class="{ show_keep_unread: itemBl.isKeptUnread(item.id) }"> - <li ng-click="itemBl.toggleKeepUnread(item.id)" + ng-class="{ show_keep_unread: itemBusinessLayer.isKeptUnread(item.id) }"> + <li ng-click="itemBusinessLayer.toggleKeepUnread(item.id)" class="keep_unread"><?php p($l->t('Keep unread')); ?> - <input type="checkbox" ng-checked="itemBl.isKeptUnread(item.id)"/> + <input type="checkbox" ng-checked="itemBusinessLayer.isKeptUnread(item.id)"/> </li> </ul> </div> |