diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-08 16:24:24 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-15 17:51:04 +0200 |
commit | 88ebb15f1d91b82022e02903ab73338065e223b9 (patch) | |
tree | fab7c807dc21209aa00980701107e26d695dba74 /apps/files_trashbin/appinfo | |
parent | 9ccb3279dd09b7042ab07c936a4c04127282476f (diff) | |
download | nextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.tar.gz nextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.zip |
Added navigation manager in files app for the sidebar
Apps can now register navigation items into the sidebar of the files app.
For every sidebar item there is a container.
The container's content is rendered based on the script name given at
registration time.
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r-- | apps/files_trashbin/appinfo/app.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/files_trashbin/appinfo/app.php b/apps/files_trashbin/appinfo/app.php index d30a601ef56..a045b1f0f51 100644 --- a/apps/files_trashbin/appinfo/app.php +++ b/apps/files_trashbin/appinfo/app.php @@ -1,7 +1,14 @@ <?php - -//OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'files_trashbin/lib/hooks.php'; -//OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php'; +$l = OC_L10N::get('files_trashbin'); // register hooks \OCA\Files_Trashbin\Trashbin::registerHooks(); + +\OCA\Files\App::getNavigationManager()->add( + array( + "appname" => 'files_trashbin', + "script" => 'index.php', + "order" => 1, + "name" => $l->t('Deleted files') + ) +); |