diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 16:08:39 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 16:08:39 +0100 |
commit | d65fa8090469286396342ff2299b58b79d83f8f3 (patch) | |
tree | c1364cc456f556205d8e14f729b38ba745b3ba06 /templates/main.php | |
parent | 1f670b3180cfd71b8085c4ef0fe414a6a78e7d44 (diff) |
fixed dicontainer and added basic controllers
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/templates/main.php b/templates/main.php index 5a62a0a92..422259c64 100644 --- a/templates/main.php +++ b/templates/main.php @@ -1,5 +1,26 @@ +<?php + +\OCP\Util::addScript('core', 'multiselect'); + +\OCP\Util::addScript('appframework', 'vendor/angular/angular'); +\OCP\Util::addScript('appframework', 'public/app'); + +\OCP\Util::addScript('news', 'vendor/angular-ui/angular-ui'); +\OCP\Util::addScript('news', 'vendor/momentjs/moment'); +\OCP\Util::addScript('news', 'public/app'); + +\OCP\Util::addStyle('news', 'owncloud'); +\OCP\Util::addStyle('news', 'addnew'); +\OCP\Util::addStyle('news', 'feeds'); +\OCP\Util::addStyle('news', 'items'); +\OCP\Util::addStyle('news', 'settings'); +\OCP\Util::addStyle('news', 'addnew'); +\OCP\Util::addStyle('news', 'showall'); + +?> + <div id="app" ng-app="News"> - <div id="app-navigation" ng-controller="FeedController"> + <div id="left-content" ng-controller="FeedController"> <ul class="with-icon" data-id="0" droppable> <?php print_unescaped($this->inc('part.addnew')) ?> @@ -14,7 +35,7 @@ <div id="app-settings-header"> <button name="app settings" class="settings-button" - click-slide-toggle="{ + oc-click-slide-toggle="{ selector: '#app-settings-content', hideOnFocusLost: true }"></button> @@ -26,9 +47,9 @@ </div> - <div id="app-content" ng-class="{loading: loading.loading>0}" + <div id="right-content" ng-class="{loading: loading.loading>0}" ng-controller="ItemController" when-scrolled="scroll()" feed-navigation> <?php print_unescaped($this->inc("part.items")); ?> </div> -</div> +</div>
\ No newline at end of file |