diff options
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/templates/main.php b/templates/main.php index 4c576754b..ad0d0a6ed 100644 --- a/templates/main.php +++ b/templates/main.php @@ -10,28 +10,21 @@ \OCP\Util::addScript('news', 'build/app'); \OCP\Util::addStyle('news', 'bootstrap/tooltip'); -\OCP\Util::addStyle('news', 'navigation'); \OCP\Util::addStyle('news', 'app'); -\OCP\Util::addStyle('news', 'content'); +//\OCP\Util::addStyle('news', 'navigation'); +//\OCP\Util::addStyle('news', 'content'); \OCP\Util::addStyle('news', 'settings'); ?> <div id="app" ng-app="News" ng-cloak ng-controller="AppController as App"> - <div id="global-loading" class="loading-icon" ng-show="App.loading.isLoading('global')"></div> - <!-- - <div id="undo-container"> - <div undo-notification id="undo"> - <a href="#"><?php p($l->t('Undo deletion of %s', '{{ getCaption() }}')); ?></a> - </div> - </div> - <news-translate key="appName"><?php p($l->t('News')); ?></news-translate> - --> + <div id="global-loading" class="icon-loading" ng-show="App.loading.isLoading('global')"></div> + <!-- navigation --> <div id="app-navigation" ng-controller="NavigationController" ng-hide="App.loading.isLoading('global')"> - <ul class="with-icon" data-id="0" droppable> + <ul class="with-icon" data-folder-id="0" news-droppable> <?php //print_unescaped($this->inc('part.addnew')) ?> <?php //print_unescaped($this->inc('part.feed.unread')) ?> <?php //print_unescaped($this->inc('part.feed.starred')) ?> @@ -45,25 +38,9 @@ </div> + <!-- content --> <script type="text/ng-template" id="content.html"><?php print_unescaped($this->inc('part.content')) ?></script> - <div id="app-content" ng-hide="App.loading.isLoading('global')" ng-view></div> - - <!-- - <div id="app-content" ng-class="{ - loading: isLoading(), - autopaging: isAutoPaging() - }" - ng-controller="ItemController" - ng-show="initialized && !feedBusinessLayer.noFeeds()" - news-item-scroll="true" - item-shortcuts - news-pull-to-refresh="loadNew()" - tabindex="-1" - news-auto-focus> - <?php print_unescaped($this->inc("part.items")); ?> - </div> - - --> + <div id="app-content" ng-class="{'icon-loading': App.loading.isLoading('content')}" ng-hide="App.loading.isLoading('global')" ng-view></div> </div> |