summaryrefslogtreecommitdiffstats
path: root/templates/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.php')
-rw-r--r--templates/index.php30
1 files changed, 13 insertions, 17 deletions
diff --git a/templates/index.php b/templates/index.php
index 5d9f0f63b..363b0fee0 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -3,6 +3,7 @@ use OCA\News\Plugin\Client\Plugin;
script('news', [
'build/app.min',
+ 'app-inject-14'
]);
style('news', [
@@ -25,14 +26,21 @@ foreach (Plugin::getScripts() as $appName => $fileName) {
}
?>
-<div id="app" ng-app="News" ng-cloak ng-strict-di
- ng-controller="AppController as App">
-
-
<div id="global-loading"
class="icon-loading"
ng-show="App.loading.isLoading('global')"></div>
+ <!-- content -->
+ <script type="text/ng-template" id="content.html">
+ <?php print_unescaped($this->inc('part.content')) ?>
+ </script>
+ <script type="text/ng-template" id="shortcuts.html">
+ <?php print_unescaped($this->inc('part.content.shortcuts')) ?>
+ </script>
+ <script type="text/ng-template" id="explore.html">
+ <?php print_unescaped($this->inc('part.content.explore')) ?>
+ </script>
+
<!-- navigation -->
<div id="app-navigation"
ng-controller="NavigationController as Navigation"
@@ -61,17 +69,6 @@ foreach (Plugin::getScripts() as $appName => $fileName) {
</div>
</div>
- <!-- content -->
- <script type="text/ng-template" id="content.html">
- <?php print_unescaped($this->inc('part.content')) ?>
- </script>
- <script type="text/ng-template" id="shortcuts.html">
- <?php print_unescaped($this->inc('part.content.shortcuts')) ?>
- </script>
- <script type="text/ng-template" id="explore.html">
- <?php print_unescaped($this->inc('part.content.explore')) ?>
- </script>
-
<div id="app-content"
ng-class="{
'loading-content': App.loading.isLoading('content') &&
@@ -96,8 +93,7 @@ foreach (Plugin::getScripts() as $appName => $fileName) {
}"
ng-hide="App.loading.isLoading('global')"
ng-view
- news-scroll=".app-content-detail"
+ news-scroll
news-scroll-enabled-mark-read="Content.markReadEnabled()"
news-scroll-auto-page="Content.autoPage()"
news-scroll-mark-read="Content.scrollRead(itemIds)"></div>
-</div>