diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 11 | ||||
-rw-r--r-- | templates/part.addnew.php | 9 | ||||
-rw-r--r-- | templates/part.firstrun.php | 3 |
3 files changed, 19 insertions, 4 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> diff --git a/templates/part.addnew.php b/templates/part.addnew.php index fe0776101..10511c95d 100644 --- a/templates/part.addnew.php +++ b/templates/part.addnew.php @@ -8,8 +8,13 @@ href="#" oc-click-focus="{ selector: '.add-new-popup input[ng-model=feedUrl]' - }">+ <span><?php p($l->t('Add Website'))?></span></a> - <div class="add-new-popup"> + }" + ng-class="{opened: initialized && feedBusinessLayer.noFeeds()}" + >+ <span><?php p($l->t('Add Website'))?></span></a> + + <div class="add-new-popup" + ng-show="initialized && feedBusinessLayer.noFeeds()"> + <fieldset class="personalblock"> <p class="error" ng-show="feedExistsError || folderExistsError"> <span ng-show="feedExistsError"> diff --git a/templates/part.firstrun.php b/templates/part.firstrun.php new file mode 100644 index 000000000..6edf8617e --- /dev/null +++ b/templates/part.firstrun.php @@ -0,0 +1,3 @@ +<h1 class="message"> + <?php p($l->t('Welcome to the ownCloud News app!')) ?> +</h1>
\ No newline at end of file |