summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 15:09:34 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 15:09:34 +0200
commit03baa5ba68daa09110940c416b3cb065a9e9ca7a (patch)
treee4d76db78c422df49901733234814fcf08354234 /templates/main.php
parent319a6f848d6a28dfb44320e02bde0b3fab6c6bc3 (diff)
reorganize templates
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php60
1 files changed, 0 insertions, 60 deletions
diff --git a/templates/main.php b/templates/main.php
deleted file mode 100644
index f1ee191a4..000000000
--- a/templates/main.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-\OCP\Util::addScript('news', 'vendor/traceur-runtime/traceur-runtime.min');
-\OCP\Util::addScript('news', 'vendor/angular/angular.min');
-\OCP\Util::addScript('news', 'vendor/angular-route/angular-route.min');
-\OCP\Util::addScript('news', 'vendor/angular-sanitize/angular-sanitize.min');
-\OCP\Util::addScript('news', 'vendor/angular-animate/angular-animate.min');
-\OCP\Util::addScript('news', 'vendor/momentjs/min/moment-with-locales.min');
-\OCP\Util::addScript('news', 'build/app.min');
-
-\OCP\Util::addStyle('news', 'app');
-\OCP\Util::addStyle('news', 'navigation');
-\OCP\Util::addStyle('news', 'content');
-\OCP\Util::addStyle('news', 'settings');
-?>
-
-
-<div id="app" ng-app="News" ng-cloak ng-controller="AppController as App">
-
- <div id="global-loading" class="icon-loading" ng-show="App.loading.isLoading('global')"></div>
-
- <!-- navigation -->
- <div id="app-navigation" ng-controller="NavigationController as Navigation" ng-hide="App.loading.isLoading('global')">
- <news-title-unread-count unread-count="{{ Navigation.getUnreadCount() }}"></news-title-unread-count>
-
- <ul class="with-icon" data-folder-id="0" news-droppable>
- <?php print_unescaped($this->inc('part.addfeed')) ?>
- <?php print_unescaped($this->inc('part.addfolder')) ?>
- <?php print_unescaped($this->inc('part.feed.unread')) ?>
- <?php print_unescaped($this->inc('part.feed.starred')) ?>
- <?php print_unescaped($this->inc('part.listfeed', ['folderId' => '0'])) ?>
- <?php print_unescaped($this->inc('part.listfolder')) ?>
- </ul>
-
- <!-- settings -->
- <div id="app-settings" ng-controller="SettingsController as Settings">
- <?php print_unescaped($this->inc('part.settings')) ?>
- </div>
-
- </div>
-
- <!-- content -->
- <script type="text/ng-template" id="content.html"><?php print_unescaped($this->inc('part.content')) ?></script>
-
- <div id="app-content">
- <div id="app-content-wrapper"
- ng-class="{
- 'icon-loading': App.loading.isLoading('content'),
- 'autopaging': App.loading.isLoading('autopaging')
- }"
- ng-hide="App.loading.isLoading('global')"
- ng-view
- tabindex="-1"
- news-scroll
- news-scroll-enabled-auto-page="Content.autoPagingEnabled()"
- news-scroll-enabled-mark-read="Content.markReadEnabled()"
- news-scroll-auto-page="Content.autoPage()"
- news-scroll-mark-read="Content.scrollRead(itemIds)">
-
- </div>
-</div>