summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-08 19:00:42 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-15 17:51:04 +0200
commitfb10bf4048aaf5b2a9665fc9dff217c790efe005 (patch)
tree9d65596c49ecb78d828c8b2fc661f46424c2965d /apps/files/templates
parent88ebb15f1d91b82022e02903ab73338065e223b9 (diff)
downloadnextcloud-server-fb10bf4048aaf5b2a9665fc9dff217c790efe005.tar.gz
nextcloud-server-fb10bf4048aaf5b2a9665fc9dff217c790efe005.zip
Files app navigation can now switch
- added new OCA.Files namespace for files classes - the sidebar can now switch between views/containers - the trashbin renders in its own container but currently doesn't work due to overrides - added app.js as entry point for JS code (ideally all other files should only contain classes and not trigger anything)
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/appnavigation.php4
-rw-r--r--apps/files/templates/index.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index a2fffd4c4b2..52e4284d3e5 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -1,9 +1,9 @@
<div id="app-navigation">
<ul>
- <li class="nav-allfiles"><a href="<?php p(OC_Helper::linkTo('files', '')) ?>"><?php p($l->t('All Files'));?></a></li>
+ <li data-id="files" class="nav-allfiles"><a href="#"><?php p($l->t('All Files'));?></a></li>
<li class="sep"></li>
<?php foreach ($_['navigationItems'] as $item) { ?>
- <li class="nav-<?php p($item['appname']) ?>"><a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"><?php p($item['name']);?></a></li>
+ <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>"><a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"><?php p($item['name']);?></a></li>
<?php } ?>
</ul>
<div id="app-settings">
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 335e2b2acd7..e93e93140d1 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -113,7 +113,7 @@
</div>
</div><!-- closing app-content-files -->
<?php foreach ($_['appContents'] as $content) { ?>
- <div id="app-content-<?php p($content['appname']) ?>" class="hidden">
+ <div id="app-content-<?php p($content['id']) ?>" class="hidden">
<?php print_unescaped($content['content']) ?>
</div>
<?php } ?>