diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-09-03 07:02:34 -0700 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-09-03 07:02:34 -0700 |
commit | 6e6db11d207007ab4077f7baa2e5d8265fdfab57 (patch) | |
tree | 4f6a136560b65aca2accb0067547cd2b36afa988 /templates/main.php | |
parent | 3d2d9e8258405443ded6981662981c0f94342e0a (diff) | |
parent | 778f7b2be62f5573fb437b1c586dad0e19a31ea1 (diff) |
Merge pull request #326 from owncloud/first-run
First run page
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> |