summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php11
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>