diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2013-09-02 23:42:55 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2013-09-02 23:42:55 -0400 |
commit | 778f7b2be62f5573fb437b1c586dad0e19a31ea1 (patch) | |
tree | a7794c434cd3d91de09e21506b1ddb1b95bfd1ca /templates/main.php | |
parent | 9315f0c6de183eeeef620d21cab393f88b8fce5e (diff) |
all the firstrunpage in one commit
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php index ab70caddf..ecfaa9515 100644 --- a/templates/main.php +++ b/templates/main.php @@ -17,6 +17,8 @@ \OCP\Util::addStyle('news', 'items'); \OCP\Util::addStyle('news', 'settings'); \OCP\Util::addStyle('news', 'showall'); +\OCP\Util::addStyle('news', 'firstrun'); + // stylesheets for different OC versions $version = \OCP\Util::getVersion(); @@ -29,7 +31,7 @@ if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { ?> -<div id="app" ng-app="News" ng-cloak> +<div id="app" ng-app="News" ng-cloak ng-controller="AppController"> <div id="undo-container"> <div undo-notification id="undo"> <a href="#"><?php p($l->t('Undo deletion of %s', '{{ getCaption() }}')); ?></a> @@ -47,7 +49,8 @@ if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { <?php print_unescaped($this->inc('part.showall')); ?> </ul> - <div id="app-settings" ng-controller="SettingsController"> + <div id="app-settings" ng-controller="SettingsController" + ng-class="{open: initialized && feedBusinessLayer.noFeeds()}"> <?php print_unescaped($this->inc('part.settings')) ?> </div> @@ -58,10 +61,14 @@ if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { autopaging: isAutoPaging() }" ng-controller="ItemController" + ng-show="initialized && !feedBusinessLayer.noFeeds()" news-item-scroll="true" item-shortcuts tabindex="-1"> <?php print_unescaped($this->inc("part.items")); ?> </div> + <div id="firstrun" ng-show="initialized && feedBusinessLayer.noFeeds()"> + <?php print_unescaped($this->inc("part.firstrun")); ?> + </div> </div> |