diff options
Diffstat (limited to 'apps/tasks/index.php')
-rw-r--r-- | apps/tasks/index.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/tasks/index.php b/apps/tasks/index.php new file mode 100644 index 00000000000..8ed5f410434 --- /dev/null +++ b/apps/tasks/index.php @@ -0,0 +1,34 @@ +<?php +/************************************************* + * ownCloud - Tasks Plugin * + * * + * (c) Copyright 2011 Bart Visscher * + * This file is licensed under the Affero General * + * Public License version 3 or later. * + * See the COPYING-README file. * + *************************************************/ + +OCP\User::checkLoggedIn(); +OCP\App::checkAppEnabled('tasks'); + +$calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true); +if( count($calendars) == 0 ) { + header('Location: ' . OCP\Util::linkTo('calendar', 'index.php')); + exit; +} + +OCP\Util::addScript('3rdparty/timepicker', 'jquery.ui.timepicker'); +OCP\Util::addStyle('3rdparty/timepicker', 'jquery.ui.timepicker'); +OCP\Util::addScript('tasks', 'tasks'); +OCP\Util::addStyle('tasks', 'style'); +OCP\Util::addScript('contacts','jquery.multi-autocomplete'); +OCP\Util::addScript('','oc-vcategories'); +OCP\App::setActiveNavigationEntry('tasks_index'); + +$categories = OC_Calendar_App::getCategoryOptions(); +$l10n = new OC_L10N('tasks'); +$priority_options = OC_Task_App::getPriorityOptions(); +$output = new OC_Template('tasks', 'tasks', 'user'); +$output->assign('priority_options', $priority_options); +$output->assign('categories', $categories); +$output -> printPage(); |