diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 22:05:36 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 22:05:36 +0200 |
commit | c27dab7c808f38135e5b3ed9b8dfac47fc073452 (patch) | |
tree | c4102ccd3167599232e1a16ca659cf23e4dfac61 /templates | |
parent | ac653d89d9cd4c47b211f50d2b8a1a501db2d31d (diff) |
add collection view
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.content.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index c7398a2df..bacb9164b 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -2,12 +2,14 @@ <h1><?php p($l->t('Welcome to the ownCloud News app!')) ?></h1> </div> -<div ng-if="!App.isFirstRun()" news-auto-focus="#app-content"> +<div ng-if="!App.isFirstRun()" + news-auto-focus="#app-content" + ng-class="{compact: Content.isCompactView(), 'feed-view': Content.isFeed()}"> <ul> <li class="item {{ Content.getFeed(item.feedId).cssClass }}" ng-repeat="item in Content.getItems() | orderBy:[Content.orderBy()] track by item.id" ng-click="Content.markRead(item.id)" - ng-class="{read: !item.unread, open: item.show, compact: Content.isCompactView()}" + ng-class="{read: !item.unread, open: item.show}" data-id="{{ item.id }}"> <div class="utils" ng-click="Content.toggleItem(item)"> |