From 1353929a7dbd3f2e897fa7d3ab88e959ca573f9f Mon Sep 17 00:00:00 2001
From: Frederic Guillot
Date: Sat, 28 May 2016 13:41:54 -0400
Subject: [PATCH] Rename controllers
---
app/Api/BaseApi.php | 4 +-
.../{Action.php => ActionController.php} | 8 +--
...ation.php => ActionCreationController.php} | 8 +--
.../{Activity.php => ActivityController.php} | 6 +-
.../{Analytic.php => AnalyticController.php} | 8 +--
app/Controller/AppController.php | 1 +
.../{Auth.php => AuthController.php} | 10 +--
...Popover.php => BoardPopoverController.php} | 6 +-
...Tooltip.php => BoardTooltipController.php} | 4 +-
.../{Calendar.php => CalendarController.php} | 6 +-
.../{Category.php => CategoryController.php} | 12 ++--
.../{Column.php => ColumnController.php} | 12 ++--
.../{Comment.php => CommentController.php} | 6 +-
...mfilter.php => CustomFilterController.php} | 13 ++--
.../{Export.php => ExportController.php} | 8 +--
...ileViewer.php => FileViewerController.php} | 4 +-
.../{Link.php => LinkController.php} | 12 ++--
.../{Oauth.php => OAuthController.php} | 6 +-
...dReset.php => PasswordResetController.php} | 10 +--
...=> ProjectActionDuplicationController.php} | 10 +--
...tion.php => ProjectCreationController.php} | 4 +-
app/Controller/ProjectEditController.php | 4 +-
...jectFile.php => ProjectFileController.php} | 8 +--
...view.php => ProjectOverviewController.php} | 4 +-
....php => ProjectUserOverviewController.php} | 14 ++--
.../{Swimlane.php => SwimlaneController.php} | 22 +++---
app/Controller/TaskBulkController.php | 1 +
...tion.php => TaskDuplicationController.php} | 6 +-
...ink.php => TaskExternalLinkController.php} | 4 +-
.../{TaskFile.php => TaskFileController.php} | 4 +-
.../{Listing.php => TaskListController.php} | 10 +--
app/Helper/LayoutHelper.php | 2 +-
app/Middleware/AuthenticationMiddleware.php | 2 +-
.../PostAuthenticationMiddleware.php | 2 +-
.../AuthenticationProvider.php | 45 ++++++------
app/ServiceProvider/RouteProvider.php | 70 +++++++++----------
app/Template/action/index.php | 8 +--
app/Template/action/remove.php | 6 +-
app/Template/action_creation/create.php | 6 +-
app/Template/action_creation/event.php | 6 +-
app/Template/action_creation/params.php | 4 +-
app/Template/activity/project.php | 2 +-
app/Template/analytic/burndown.php | 2 +-
app/Template/analytic/cfd.php | 2 +-
app/Template/analytic/layout.php | 2 +-
app/Template/analytic/lead_cycle_time.php | 2 +-
app/Template/analytic/sidebar.php | 32 ++++-----
app/Template/auth/index.php | 4 +-
app/Template/board/table_column.php | 2 +-
app/Template/board/table_swimlane.php | 2 +-
app/Template/board/task_footer.php | 16 ++---
app/Template/board/tooltip_files.php | 4 +-
.../board_popover/close_all_tasks_column.php | 4 +-
app/Template/calendar/show.php | 8 +--
app/Template/category/edit.php | 6 +-
app/Template/category/index.php | 8 +--
app/Template/category/remove.php | 6 +-
app/Template/column/create.php | 4 +-
app/Template/column/edit.php | 6 +-
app/Template/column/index.php | 8 +--
app/Template/column/remove.php | 6 +-
app/Template/comment/create.php | 2 +-
app/Template/comment/edit.php | 2 +-
app/Template/comment/remove.php | 2 +-
app/Template/comment/show.php | 4 +-
app/Template/comments/create.php | 2 +-
app/Template/comments/show.php | 4 +-
app/Template/config/sidebar.php | 4 +-
app/Template/custom_filter/add.php | 2 +-
app/Template/custom_filter/edit.php | 4 +-
app/Template/custom_filter/index.php | 6 +-
app/Template/custom_filter/remove.php | 4 +-
app/Template/dashboard/calendar.php | 4 +-
app/Template/dashboard/layout.php | 6 +-
app/Template/dashboard/projects.php | 4 +-
app/Template/export/sidebar.php | 10 +--
app/Template/file_viewer/show.php | 4 +-
app/Template/gantt/projects.php | 4 +-
app/Template/header.php | 10 +--
app/Template/layout.php | 2 +-
app/Template/link/create.php | 4 +-
app/Template/link/edit.php | 4 +-
app/Template/link/index.php | 6 +-
app/Template/link/remove.php | 6 +-
app/Template/password_reset/change.php | 4 +-
app/Template/password_reset/create.php | 2 +-
app/Template/password_reset/email.php | 4 +-
app/Template/project/dropdown.php | 10 +--
app/Template/project/layout.php | 4 +-
app/Template/project/sidebar.php | 20 +++---
.../show.php} | 5 +-
app/Template/project_creation/create.php | 2 +-
app/Template/project_edit/general.php | 2 +-
app/Template/project_file/create.php | 6 +-
app/Template/project_file/remove.php | 6 +-
app/Template/project_header/dropdown.php | 14 ++--
app/Template/project_header/views.php | 18 ++---
app/Template/project_list/show.php | 10 +--
app/Template/project_overview/attachments.php | 4 +-
app/Template/project_overview/files.php | 8 +--
app/Template/project_overview/images.php | 8 +--
app/Template/project_overview/show.php | 2 +-
app/Template/project_user/sidebar.php | 30 --------
.../layout.php | 0
.../roles.php | 0
.../project_user_overview/sidebar.php | 30 ++++++++
.../tasks.php | 0
.../tooltip_users.php | 2 +-
app/Template/project_view/show.php | 2 +-
app/Template/swimlane/create.php | 4 +-
app/Template/swimlane/edit.php | 6 +-
app/Template/swimlane/edit_default.php | 4 +-
app/Template/swimlane/index.php | 2 +-
app/Template/swimlane/remove.php | 6 +-
app/Template/swimlane/table.php | 16 ++---
app/Template/task/dropdown.php | 10 +--
app/Template/task/layout.php | 4 +-
app/Template/task/show.php | 2 +-
app/Template/task/sidebar.php | 18 ++---
app/Template/task_duplication/copy.php | 4 +-
app/Template/task_duplication/duplicate.php | 2 +-
app/Template/task_duplication/move.php | 4 +-
app/Template/task_external_link/create.php | 6 +-
app/Template/task_external_link/edit.php | 6 +-
app/Template/task_external_link/find.php | 2 +-
app/Template/task_external_link/remove.php | 6 +-
app/Template/task_external_link/table.php | 8 +--
app/Template/task_file/create.php | 2 +-
app/Template/task_file/files.php | 10 +--
app/Template/task_file/images.php | 10 +--
app/Template/task_file/remove.php | 2 +-
app/Template/task_file/screenshot.php | 2 +-
app/Template/{listing => task_list}/show.php | 2 +-
tests/units/Helper/UserHelperTest.php | 46 ++++++------
134 files changed, 496 insertions(+), 493 deletions(-)
rename app/Controller/{Action.php => ActionController.php} (91%)
rename app/Controller/{ActionCreation.php => ActionCreationController.php} (93%)
rename app/Controller/{Activity.php => ActivityController.php} (90%)
rename app/Controller/{Analytic.php => AnalyticController.php} (96%)
rename app/Controller/{Auth.php => AuthController.php} (88%)
rename app/Controller/{BoardPopover.php => BoardPopoverController.php} (93%)
rename app/Controller/{BoardTooltip.php => BoardTooltipController.php} (97%)
rename app/Controller/{Calendar.php => CalendarController.php} (96%)
rename app/Controller/{Category.php => CategoryController.php} (91%)
rename app/Controller/{Column.php => ColumnController.php} (92%)
rename app/Controller/{Comment.php => CommentController.php} (98%)
rename app/Controller/{Customfilter.php => CustomFilterController.php} (91%)
rename app/Controller/{Export.php => ExportController.php} (93%)
rename app/Controller/{FileViewer.php => FileViewerController.php} (97%)
rename app/Controller/{Link.php => LinkController.php} (93%)
rename app/Controller/{Oauth.php => OAuthController.php} (97%)
rename app/Controller/{PasswordReset.php => PasswordResetController.php} (91%)
rename app/Controller/{ActionProject.php => ProjectActionDuplicationController.php} (69%)
rename app/Controller/{ProjectCreation.php => ProjectCreationController.php} (97%)
rename app/Controller/{ProjectFile.php => ProjectFileController.php} (88%)
rename app/Controller/{ProjectOverview.php => ProjectOverviewController.php} (91%)
rename app/Controller/{Projectuser.php => ProjectUserOverviewController.php} (89%)
rename app/Controller/{Swimlane.php => SwimlaneController.php} (89%)
rename app/Controller/{Taskduplication.php => TaskDuplicationController.php} (95%)
rename app/Controller/{TaskExternalLink.php => TaskExternalLinkController.php} (98%)
rename app/Controller/{TaskFile.php => TaskFileController.php} (97%)
rename app/Controller/{Listing.php => TaskListController.php} (77%)
rename app/Template/{action_project/project.php => project_action_duplication/show.php} (84%)
delete mode 100644 app/Template/project_user/sidebar.php
rename app/Template/{project_user => project_user_overview}/layout.php (100%)
rename app/Template/{project_user => project_user_overview}/roles.php (100%)
create mode 100644 app/Template/project_user_overview/sidebar.php
rename app/Template/{project_user => project_user_overview}/tasks.php (100%)
rename app/Template/{project_user => project_user_overview}/tooltip_users.php (88%)
rename app/Template/{listing => task_list}/show.php (97%)
diff --git a/app/Api/BaseApi.php b/app/Api/BaseApi.php
index d8c46fd52..5de7f5276 100644
--- a/app/Api/BaseApi.php
+++ b/app/Api/BaseApi.php
@@ -98,8 +98,8 @@ abstract class BaseApi extends Base
if (! empty($project)) {
$project['url'] = array(
'board' => $this->helper->url->to('board', 'show', array('project_id' => $project['id']), '', true),
- 'calendar' => $this->helper->url->to('calendar', 'show', array('project_id' => $project['id']), '', true),
- 'list' => $this->helper->url->to('listing', 'show', array('project_id' => $project['id']), '', true),
+ 'calendar' => $this->helper->url->to('CalendarController', 'show', array('project_id' => $project['id']), '', true),
+ 'list' => $this->helper->url->to('TaskListController', 'show', array('project_id' => $project['id']), '', true),
);
}
diff --git a/app/Controller/Action.php b/app/Controller/ActionController.php
similarity index 91%
rename from app/Controller/Action.php
rename to app/Controller/ActionController.php
index 40497a628..51090d226 100644
--- a/app/Controller/Action.php
+++ b/app/Controller/ActionController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Automatic Actions
+ * Automatic Actions Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Action extends BaseController
+class ActionController extends BaseController
{
/**
* List of automatic actions for a given project
@@ -72,6 +72,6 @@ class Action extends BaseController
$this->flash->failure(t('Unable to remove this action.'));
}
- $this->response->redirect($this->helper->url->to('action', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('ActionController', 'index', array('project_id' => $project['id'])));
}
}
diff --git a/app/Controller/ActionCreation.php b/app/Controller/ActionCreationController.php
similarity index 93%
rename from app/Controller/ActionCreation.php
rename to app/Controller/ActionCreationController.php
index 388b30e25..e055f11bd 100644
--- a/app/Controller/ActionCreation.php
+++ b/app/Controller/ActionCreationController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Action Creation
+ * Action Creation Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class ActionCreation extends BaseController
+class ActionCreationController extends BaseController
{
/**
* Show the form (step 1)
@@ -117,6 +117,6 @@ class ActionCreation extends BaseController
}
}
- $this->response->redirect($this->helper->url->to('action', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('ActionController', 'index', array('project_id' => $project['id'])));
}
}
diff --git a/app/Controller/Activity.php b/app/Controller/ActivityController.php
similarity index 90%
rename from app/Controller/Activity.php
rename to app/Controller/ActivityController.php
index 0c6aa3f39..a8fc1b39b 100644
--- a/app/Controller/Activity.php
+++ b/app/Controller/ActivityController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Activity stream
+ * Activity Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Activity extends BaseController
+class ActivityController extends BaseController
{
/**
* Activity page for a project
diff --git a/app/Controller/Analytic.php b/app/Controller/AnalyticController.php
similarity index 96%
rename from app/Controller/Analytic.php
rename to app/Controller/AnalyticController.php
index ba73c15c3..99d34c66d 100644
--- a/app/Controller/Analytic.php
+++ b/app/Controller/AnalyticController.php
@@ -6,12 +6,12 @@ use Kanboard\Filter\TaskProjectFilter;
use Kanboard\Model\Task as TaskModel;
/**
- * Project Analytic controller
+ * Project Analytic Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Analytic extends BaseController
+class AnalyticController extends BaseController
{
/**
* Show average Lead and Cycle time
@@ -47,7 +47,7 @@ class Analytic extends BaseController
$project = $this->getProject();
$paginator = $this->paginator
- ->setUrl('analytic', 'compareHours', array('project_id' => $project['id']))
+ ->setUrl('AnalyticController', 'compareHours', array('project_id' => $project['id']))
->setMax(30)
->setOrder(TaskModel::TABLE.'.id')
->setQuery($this->taskQuery
diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php
index 60bc154ab..45cf39a5a 100644
--- a/app/Controller/AppController.php
+++ b/app/Controller/AppController.php
@@ -8,6 +8,7 @@ use Kanboard\Core\Base;
* Class AppController
*
* @package Kanboard\Controller
+ * @author Frederic Guillot
*/
class AppController extends Base
{
diff --git a/app/Controller/Auth.php b/app/Controller/AuthController.php
similarity index 88%
rename from app/Controller/Auth.php
rename to app/Controller/AuthController.php
index cad44a346..598b3ff8c 100644
--- a/app/Controller/Auth.php
+++ b/app/Controller/AuthController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Authentication controller
+ * Authentication Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Auth extends BaseController
+class AuthController extends BaseController
{
/**
* Display the form login
@@ -59,9 +59,9 @@ class Auth extends BaseController
{
if (! DISABLE_LOGOUT) {
$this->sessionManager->close();
- $this->response->redirect($this->helper->url->to('auth', 'login'));
+ $this->response->redirect($this->helper->url->to('AuthController', 'login'));
} else {
- $this->response->redirect($this->helper->url->to('auth', 'index'));
+ $this->response->redirect($this->helper->url->to('AuthController', 'index'));
}
}
diff --git a/app/Controller/BoardPopover.php b/app/Controller/BoardPopoverController.php
similarity index 93%
rename from app/Controller/BoardPopover.php
rename to app/Controller/BoardPopoverController.php
index d3117f78d..b204af39d 100644
--- a/app/Controller/BoardPopover.php
+++ b/app/Controller/BoardPopoverController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Board Popover
+ * Board Popover Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class BoardPopover extends BaseController
+class BoardPopoverController extends BaseController
{
/**
* Confirmation before to close all column tasks
diff --git a/app/Controller/BoardTooltip.php b/app/Controller/BoardTooltipController.php
similarity index 97%
rename from app/Controller/BoardTooltip.php
rename to app/Controller/BoardTooltipController.php
index 49d02ced4..2f1d949e4 100644
--- a/app/Controller/BoardTooltip.php
+++ b/app/Controller/BoardTooltipController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Board Tooltip
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class BoardTooltip extends BaseController
+class BoardTooltipController extends BaseController
{
/**
* Get links on mouseover
diff --git a/app/Controller/Calendar.php b/app/Controller/CalendarController.php
similarity index 96%
rename from app/Controller/Calendar.php
rename to app/Controller/CalendarController.php
index 706c1d3b1..c875a18cc 100644
--- a/app/Controller/Calendar.php
+++ b/app/Controller/CalendarController.php
@@ -8,13 +8,13 @@ use Kanboard\Filter\TaskStatusFilter;
use Kanboard\Model\Task as TaskModel;
/**
- * Project Calendar controller
+ * Calendar Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
* @author Timo Litzbarski
*/
-class Calendar extends BaseController
+class CalendarController extends BaseController
{
/**
* Show calendar view for projects
diff --git a/app/Controller/Category.php b/app/Controller/CategoryController.php
similarity index 91%
rename from app/Controller/Category.php
rename to app/Controller/CategoryController.php
index 954d92ccd..e7c8db540 100644
--- a/app/Controller/Category.php
+++ b/app/Controller/CategoryController.php
@@ -5,12 +5,12 @@ namespace Kanboard\Controller;
use Kanboard\Core\Controller\PageNotFoundException;
/**
- * Category management
+ * Category Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Category extends BaseController
+class CategoryController extends BaseController
{
/**
* Get the category (common method between actions)
@@ -66,7 +66,7 @@ class Category extends BaseController
if ($valid) {
if ($this->category->create($values)) {
$this->flash->success(t('Your category have been created successfully.'));
- return $this->response->redirect($this->helper->url->to('category', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('CategoryController', 'index', array('project_id' => $project['id'])));
} else {
$this->flash->failure(t('Unable to create your category.'));
}
@@ -111,7 +111,7 @@ class Category extends BaseController
if ($valid) {
if ($this->category->update($values)) {
$this->flash->success(t('Your category have been updated successfully.'));
- return $this->response->redirect($this->helper->url->to('category', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('CategoryController', 'index', array('project_id' => $project['id'])));
} else {
$this->flash->failure(t('Unable to update your category.'));
}
@@ -154,6 +154,6 @@ class Category extends BaseController
$this->flash->failure(t('Unable to remove this category.'));
}
- $this->response->redirect($this->helper->url->to('category', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('CategoryController', 'index', array('project_id' => $project['id'])));
}
}
diff --git a/app/Controller/Column.php b/app/Controller/ColumnController.php
similarity index 92%
rename from app/Controller/Column.php
rename to app/Controller/ColumnController.php
index 294c31d8d..5f04f426b 100644
--- a/app/Controller/Column.php
+++ b/app/Controller/ColumnController.php
@@ -5,12 +5,12 @@ namespace Kanboard\Controller;
use Kanboard\Core\Controller\AccessForbiddenException;
/**
- * Column controller
+ * Column Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Column extends BaseController
+class ColumnController extends BaseController
{
/**
* Display columns list
@@ -68,7 +68,7 @@ class Column extends BaseController
if ($valid) {
if ($this->column->create($project['id'], $values['title'], $values['task_limit'], $values['description'])) {
$this->flash->success(t('Column created successfully.'));
- return $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])), true);
+ return $this->response->redirect($this->helper->url->to('ColumnController', 'index', array('project_id' => $project['id'])), true);
} else {
$errors['title'] = array(t('Another column with the same name exists in the project'));
}
@@ -113,7 +113,7 @@ class Column extends BaseController
if ($valid) {
if ($this->column->update($values['id'], $values['title'], $values['task_limit'], $values['description'])) {
$this->flash->success(t('Board updated successfully.'));
- return $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('ColumnController', 'index', array('project_id' => $project['id'])));
} else {
$this->flash->failure(t('Unable to update this board.'));
}
@@ -173,6 +173,6 @@ class Column extends BaseController
$this->flash->failure(t('Unable to remove this column.'));
}
- $this->response->redirect($this->helper->url->to('column', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('ColumnController', 'index', array('project_id' => $project['id'])));
}
}
diff --git a/app/Controller/Comment.php b/app/Controller/CommentController.php
similarity index 98%
rename from app/Controller/Comment.php
rename to app/Controller/CommentController.php
index 8d3b7862b..8d1132ae8 100644
--- a/app/Controller/Comment.php
+++ b/app/Controller/CommentController.php
@@ -6,12 +6,12 @@ use Kanboard\Core\Controller\AccessForbiddenException;
use Kanboard\Core\Controller\PageNotFoundException;
/**
- * Comment controller
+ * Comment Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Comment extends BaseController
+class CommentController extends BaseController
{
/**
* Get the current comment
diff --git a/app/Controller/Customfilter.php b/app/Controller/CustomFilterController.php
similarity index 91%
rename from app/Controller/Customfilter.php
rename to app/Controller/CustomFilterController.php
index d07943662..8dd987645 100644
--- a/app/Controller/Customfilter.php
+++ b/app/Controller/CustomFilterController.php
@@ -6,12 +6,13 @@ use Kanboard\Core\Controller\AccessForbiddenException;
use Kanboard\Core\Security\Role;
/**
- * Custom Filter management
+ * Custom Filter Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Timo Litzbarski
+ * @author Frederic Guillot
*/
-class Customfilter extends BaseController
+class CustomFilterController extends BaseController
{
/**
* Display list of filters
@@ -48,7 +49,7 @@ class Customfilter extends BaseController
if ($valid) {
if ($this->customFilter->create($values)) {
$this->flash->success(t('Your custom filter have been created successfully.'));
- return $this->response->redirect($this->helper->url->to('customfilter', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('CustomFilterController', 'index', array('project_id' => $project['id'])));
} else {
$this->flash->failure(t('Unable to create your custom filter.'));
}
@@ -93,7 +94,7 @@ class Customfilter extends BaseController
$this->flash->failure(t('Unable to remove this custom filter.'));
}
- $this->response->redirect($this->helper->url->to('customfilter', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('CustomFilterController', 'index', array('project_id' => $project['id'])));
}
/**
@@ -144,7 +145,7 @@ class Customfilter extends BaseController
if ($valid) {
if ($this->customFilter->update($values)) {
$this->flash->success(t('Your custom filter have been updated successfully.'));
- return $this->response->redirect($this->helper->url->to('customfilter', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('CustomFilterController', 'index', array('project_id' => $project['id'])));
} else {
$this->flash->failure(t('Unable to update custom filter.'));
}
diff --git a/app/Controller/Export.php b/app/Controller/ExportController.php
similarity index 93%
rename from app/Controller/Export.php
rename to app/Controller/ExportController.php
index 7e1d2fdc8..4ed9ee08b 100644
--- a/app/Controller/Export.php
+++ b/app/Controller/ExportController.php
@@ -3,12 +3,12 @@
namespace Kanboard\Controller;
/**
- * Export controller
+ * Export Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Export extends BaseController
+class ExportController extends BaseController
{
/**
* Common export method
@@ -35,7 +35,7 @@ class Export extends BaseController
$this->response->html($this->helper->layout->project('export/'.$action, array(
'values' => array(
- 'controller' => 'export',
+ 'controller' => 'ExportController',
'action' => $action,
'project_id' => $project['id'],
'from' => $from,
diff --git a/app/Controller/FileViewer.php b/app/Controller/FileViewerController.php
similarity index 97%
rename from app/Controller/FileViewer.php
rename to app/Controller/FileViewerController.php
index a49b0fb2c..245845c7f 100644
--- a/app/Controller/FileViewer.php
+++ b/app/Controller/FileViewerController.php
@@ -7,10 +7,10 @@ use Kanboard\Core\ObjectStorage\ObjectStorageException;
/**
* File Viewer Controller
*
- * @package controller
+ * @package Kanbaord\Controller
* @author Frederic Guillot
*/
-class FileViewer extends BaseController
+class FileViewerController extends BaseController
{
/**
* Get file content from object storage
diff --git a/app/Controller/Link.php b/app/Controller/LinkController.php
similarity index 93%
rename from app/Controller/Link.php
rename to app/Controller/LinkController.php
index d28f5e4e6..08627d400 100644
--- a/app/Controller/Link.php
+++ b/app/Controller/LinkController.php
@@ -5,13 +5,13 @@ namespace Kanboard\Controller;
use Kanboard\Core\Controller\PageNotFoundException;
/**
- * Link controller
+ * Link Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Olivier Maridat
* @author Frederic Guillot
*/
-class Link extends BaseController
+class LinkController extends BaseController
{
/**
* Get the current link
@@ -61,7 +61,7 @@ class Link extends BaseController
if ($valid) {
if ($this->link->create($values['label'], $values['opposite_label']) !== false) {
$this->flash->success(t('Link added successfully.'));
- return $this->response->redirect($this->helper->url->to('link', 'index'));
+ return $this->response->redirect($this->helper->url->to('LinkController', 'index'));
} else {
$this->flash->failure(t('Unable to create your link.'));
}
@@ -105,7 +105,7 @@ class Link extends BaseController
if ($valid) {
if ($this->link->update($values)) {
$this->flash->success(t('Link updated successfully.'));
- return $this->response->redirect($this->helper->url->to('link', 'index'));
+ return $this->response->redirect($this->helper->url->to('LinkController', 'index'));
} else {
$this->flash->failure(t('Unable to update your link.'));
}
@@ -145,6 +145,6 @@ class Link extends BaseController
$this->flash->failure(t('Unable to remove this link.'));
}
- $this->response->redirect($this->helper->url->to('link', 'index'));
+ $this->response->redirect($this->helper->url->to('LinkController', 'index'));
}
}
diff --git a/app/Controller/Oauth.php b/app/Controller/OAuthController.php
similarity index 97%
rename from app/Controller/Oauth.php
rename to app/Controller/OAuthController.php
index 04adf154c..7663ddcc1 100644
--- a/app/Controller/Oauth.php
+++ b/app/Controller/OAuthController.php
@@ -5,12 +5,12 @@ namespace Kanboard\Controller;
use Kanboard\Core\Security\OAuthAuthenticationProviderInterface;
/**
- * OAuth controller
+ * OAuth Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Oauth extends BaseController
+class OAuthController extends BaseController
{
/**
* Redirect to the provider if no code received
diff --git a/app/Controller/PasswordReset.php b/app/Controller/PasswordResetController.php
similarity index 91%
rename from app/Controller/PasswordReset.php
rename to app/Controller/PasswordResetController.php
index 7050d6d2d..9036b3e78 100644
--- a/app/Controller/PasswordReset.php
+++ b/app/Controller/PasswordResetController.php
@@ -7,10 +7,10 @@ use Kanboard\Core\Controller\AccessForbiddenException;
/**
* Password Reset Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class PasswordReset extends BaseController
+class PasswordResetController extends BaseController
{
/**
* Show the form to reset the password
@@ -38,7 +38,7 @@ class PasswordReset extends BaseController
if ($valid) {
$this->sendEmail($values['username']);
- $this->response->redirect($this->helper->url->to('auth', 'login'));
+ $this->response->redirect($this->helper->url->to('AuthController', 'login'));
} else {
$this->create($values, $errors);
}
@@ -62,7 +62,7 @@ class PasswordReset extends BaseController
'no_layout' => true,
)));
} else {
- $this->response->redirect($this->helper->url->to('auth', 'login'));
+ $this->response->redirect($this->helper->url->to('AuthController', 'login'));
}
}
@@ -85,7 +85,7 @@ class PasswordReset extends BaseController
$this->passwordReset->disable($user_id);
}
- return $this->response->redirect($this->helper->url->to('auth', 'login'));
+ return $this->response->redirect($this->helper->url->to('AuthController', 'login'));
}
return $this->change($values, $errors);
diff --git a/app/Controller/ActionProject.php b/app/Controller/ProjectActionDuplicationController.php
similarity index 69%
rename from app/Controller/ActionProject.php
rename to app/Controller/ProjectActionDuplicationController.php
index 10b3c9d4b..790b7ed33 100644
--- a/app/Controller/ActionProject.php
+++ b/app/Controller/ProjectActionDuplicationController.php
@@ -5,18 +5,18 @@ namespace Kanboard\Controller;
/**
* Duplicate automatic action from another project
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class ActionProject extends BaseController
+class ProjectActionDuplicationController extends BaseController
{
- public function project()
+ public function show()
{
$project = $this->getProject();
$projects = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
unset($projects[$project['id']]);
- $this->response->html($this->template->render('action_project/project', array(
+ $this->response->html($this->template->render('project_action_duplication/show', array(
'project' => $project,
'projects_list' => $projects,
)));
@@ -33,6 +33,6 @@ class ActionProject extends BaseController
$this->flash->failure(t('Unable to duplicate actions.'));
}
- $this->response->redirect($this->helper->url->to('action', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('ActionController', 'index', array('project_id' => $project['id'])));
}
}
diff --git a/app/Controller/ProjectCreation.php b/app/Controller/ProjectCreationController.php
similarity index 97%
rename from app/Controller/ProjectCreation.php
rename to app/Controller/ProjectCreationController.php
index 0ffa21743..4166ead1b 100644
--- a/app/Controller/ProjectCreation.php
+++ b/app/Controller/ProjectCreationController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Project Creation Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class ProjectCreation extends BaseController
+class ProjectCreationController extends BaseController
{
/**
* Display a form to create a new project
diff --git a/app/Controller/ProjectEditController.php b/app/Controller/ProjectEditController.php
index 774c69098..64e02d1a9 100644
--- a/app/Controller/ProjectEditController.php
+++ b/app/Controller/ProjectEditController.php
@@ -97,11 +97,11 @@ class ProjectEditController extends BaseController
{
if ($redirect === 'edit') {
if (isset($values['is_private'])) {
- if (! $this->helper->user->hasProjectAccess('ProjectCreation', 'create', $project['id'])) {
+ if (! $this->helper->user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])) {
unset($values['is_private']);
}
} elseif ($project['is_private'] == 1 && ! isset($values['is_private'])) {
- if ($this->helper->user->hasProjectAccess('ProjectCreation', 'create', $project['id'])) {
+ if ($this->helper->user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])) {
$values += array('is_private' => 0);
}
}
diff --git a/app/Controller/ProjectFile.php b/app/Controller/ProjectFileController.php
similarity index 88%
rename from app/Controller/ProjectFile.php
rename to app/Controller/ProjectFileController.php
index 6ec5ff273..f1bce09d9 100644
--- a/app/Controller/ProjectFile.php
+++ b/app/Controller/ProjectFileController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Project File Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class ProjectFile extends BaseController
+class ProjectFileController extends BaseController
{
/**
* File upload form
@@ -38,7 +38,7 @@ class ProjectFile extends BaseController
$this->flash->failure(t('Unable to upload the file.'));
}
- $this->response->redirect($this->helper->url->to('ProjectOverview', 'show', array('project_id' => $project['id'])), true);
+ $this->response->redirect($this->helper->url->to('ProjectOverviewController', 'show', array('project_id' => $project['id'])), true);
}
/**
@@ -58,7 +58,7 @@ class ProjectFile extends BaseController
$this->flash->failure(t('Unable to remove this file.'));
}
- $this->response->redirect($this->helper->url->to('ProjectOverview', 'show', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('ProjectOverviewController', 'show', array('project_id' => $project['id'])));
}
/**
diff --git a/app/Controller/ProjectOverview.php b/app/Controller/ProjectOverviewController.php
similarity index 91%
rename from app/Controller/ProjectOverview.php
rename to app/Controller/ProjectOverviewController.php
index f8837f957..75cf25ba1 100644
--- a/app/Controller/ProjectOverview.php
+++ b/app/Controller/ProjectOverviewController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Project Overview Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class ProjectOverview extends BaseController
+class ProjectOverviewController extends BaseController
{
/**
* Show project overview
diff --git a/app/Controller/Projectuser.php b/app/Controller/ProjectUserOverviewController.php
similarity index 89%
rename from app/Controller/Projectuser.php
rename to app/Controller/ProjectUserOverviewController.php
index fe1fe0f15..90887a8a5 100644
--- a/app/Controller/Projectuser.php
+++ b/app/Controller/ProjectUserOverviewController.php
@@ -9,10 +9,10 @@ use Kanboard\Core\Security\Role;
/**
* Project User overview
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Projectuser extends BaseController
+class ProjectUserOverviewController extends BaseController
{
private function common()
{
@@ -39,13 +39,13 @@ class Projectuser extends BaseController
}
$paginator = $this->paginator
- ->setUrl('projectuser', $action, array('user_id' => $user_id))
+ ->setUrl('ProjectUserOverviewController', $action, array('user_id' => $user_id))
->setMax(30)
->setOrder('projects.name')
->setQuery($query)
->calculate();
- $this->response->html($this->helper->layout->projectUser('project_user/roles', array(
+ $this->response->html($this->helper->layout->projectUser('project_user_overview/roles', array(
'paginator' => $paginator,
'title' => $title,
'user_id' => $user_id,
@@ -65,13 +65,13 @@ class Projectuser extends BaseController
}
$paginator = $this->paginator
- ->setUrl('projectuser', $action, array('user_id' => $user_id))
+ ->setUrl('ProjectUserOverviewController', $action, array('user_id' => $user_id))
->setMax(50)
->setOrder(TaskModel::TABLE.'.id')
->setQuery($query)
->calculate();
- $this->response->html($this->helper->layout->projectUser('project_user/tasks', array(
+ $this->response->html($this->helper->layout->projectUser('project_user_overview/tasks', array(
'paginator' => $paginator,
'title' => $title,
'user_id' => $user_id,
@@ -122,7 +122,7 @@ class Projectuser extends BaseController
{
$project = $this->getProject();
- return $this->response->html($this->template->render('project_user/tooltip_users', array(
+ return $this->response->html($this->template->render('project_user_overview/tooltip_users', array(
'users' => $this->projectUserRole->getAllUsersGroupedByRole($project['id']),
'roles' => $this->role->getProjectRoles(),
)));
diff --git a/app/Controller/Swimlane.php b/app/Controller/SwimlaneController.php
similarity index 89%
rename from app/Controller/Swimlane.php
rename to app/Controller/SwimlaneController.php
index 4575e9099..13a64d40a 100644
--- a/app/Controller/Swimlane.php
+++ b/app/Controller/SwimlaneController.php
@@ -7,12 +7,12 @@ use Kanboard\Core\Controller\PageNotFoundException;
use Kanboard\Model\Swimlane as SwimlaneModel;
/**
- * Swimlanes
+ * Swimlanes Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Swimlane extends BaseController
+class SwimlaneController extends BaseController
{
/**
* Get the swimlane (common method between actions)
@@ -83,7 +83,7 @@ class Swimlane extends BaseController
if ($valid) {
if ($this->swimlane->create($values)) {
$this->flash->success(t('Your swimlane have been created successfully.'));
- return $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
} else {
$errors = array('name' => array(t('Another swimlane with the same name exists in the project')));
}
@@ -127,7 +127,7 @@ class Swimlane extends BaseController
if ($valid) {
if ($this->swimlane->updateDefault($values)) {
$this->flash->success(t('The default swimlane have been updated successfully.'));
- return $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])), true);
+ return $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])), true);
} else {
$this->flash->failure(t('Unable to update this swimlane.'));
}
@@ -171,7 +171,7 @@ class Swimlane extends BaseController
if ($valid) {
if ($this->swimlane->update($values)) {
$this->flash->success(t('Swimlane updated successfully.'));
- return $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ return $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
} else {
$errors = array('name' => array(t('Another swimlane with the same name exists in the project')));
}
@@ -213,7 +213,7 @@ class Swimlane extends BaseController
$this->flash->failure(t('Unable to remove this swimlane.'));
}
- $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
}
/**
@@ -233,7 +233,7 @@ class Swimlane extends BaseController
$this->flash->failure(t('Unable to update this swimlane.'));
}
- $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
}
/**
@@ -252,7 +252,7 @@ class Swimlane extends BaseController
$this->flash->failure(t('Unable to update this swimlane.'));
}
- $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
}
/**
@@ -272,7 +272,7 @@ class Swimlane extends BaseController
$this->flash->failure(t('Unable to update this swimlane.'));
}
- $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
}
/**
@@ -291,7 +291,7 @@ class Swimlane extends BaseController
$this->flash->failure(t('Unable to update this swimlane.'));
}
- $this->response->redirect($this->helper->url->to('swimlane', 'index', array('project_id' => $project['id'])));
+ $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
}
/**
diff --git a/app/Controller/TaskBulkController.php b/app/Controller/TaskBulkController.php
index 4b4a2594f..c0214ea7f 100644
--- a/app/Controller/TaskBulkController.php
+++ b/app/Controller/TaskBulkController.php
@@ -6,6 +6,7 @@ namespace Kanboard\Controller;
* Class TaskBulkController
*
* @package Kanboard\Controller
+ * @author Frederic Guillot
*/
class TaskBulkController extends BaseController
{
diff --git a/app/Controller/Taskduplication.php b/app/Controller/TaskDuplicationController.php
similarity index 95%
rename from app/Controller/Taskduplication.php
rename to app/Controller/TaskDuplicationController.php
index 1ea3a3f96..ab7b6b425 100644
--- a/app/Controller/Taskduplication.php
+++ b/app/Controller/TaskDuplicationController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Task Duplication controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Taskduplication extends BaseController
+class TaskDuplicationController extends BaseController
{
/**
* Duplicate a task
@@ -28,7 +28,7 @@ class Taskduplication extends BaseController
return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task_id)));
} else {
$this->flash->failure(t('Unable to create this task.'));
- return $this->response->redirect($this->helper->url->to('taskduplication', 'duplicate', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true);
+ return $this->response->redirect($this->helper->url->to('TaskDuplicationController', 'duplicate', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true);
}
}
diff --git a/app/Controller/TaskExternalLink.php b/app/Controller/TaskExternalLinkController.php
similarity index 98%
rename from app/Controller/TaskExternalLink.php
rename to app/Controller/TaskExternalLinkController.php
index 0bd55dba8..91dc734a0 100644
--- a/app/Controller/TaskExternalLink.php
+++ b/app/Controller/TaskExternalLinkController.php
@@ -8,10 +8,10 @@ use Kanboard\Core\ExternalLink\ExternalLinkProviderNotFound;
/**
* Task External Link Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class TaskExternalLink extends BaseController
+class TaskExternalLinkController extends BaseController
{
/**
* First creation form
diff --git a/app/Controller/TaskFile.php b/app/Controller/TaskFileController.php
similarity index 97%
rename from app/Controller/TaskFile.php
rename to app/Controller/TaskFileController.php
index 544c1ea72..44c19c276 100644
--- a/app/Controller/TaskFile.php
+++ b/app/Controller/TaskFileController.php
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
/**
* Task File Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class TaskFile extends BaseController
+class TaskFileController extends BaseController
{
/**
* Screenshot
diff --git a/app/Controller/Listing.php b/app/Controller/TaskListController.php
similarity index 77%
rename from app/Controller/Listing.php
rename to app/Controller/TaskListController.php
index 93a7b8368..898c14c81 100644
--- a/app/Controller/Listing.php
+++ b/app/Controller/TaskListController.php
@@ -6,12 +6,12 @@ use Kanboard\Filter\TaskProjectFilter;
use Kanboard\Model\Task as TaskModel;
/**
- * List view controller
+ * Task List Controller
*
- * @package controller
+ * @package Kanboard\Controller
* @author Frederic Guillot
*/
-class Listing extends BaseController
+class TaskListController extends BaseController
{
/**
* Show list view for projects
@@ -24,7 +24,7 @@ class Listing extends BaseController
$search = $this->helper->projectHeader->getSearchQuery($project);
$paginator = $this->paginator
- ->setUrl('listing', 'show', array('project_id' => $project['id']))
+ ->setUrl('TaskListController', 'show', array('project_id' => $project['id']))
->setMax(30)
->setOrder(TaskModel::TABLE.'.id')
->setDirection('DESC')
@@ -35,7 +35,7 @@ class Listing extends BaseController
)
->calculate();
- $this->response->html($this->helper->layout->app('listing/show', array(
+ $this->response->html($this->helper->layout->app('task_list/show', array(
'project' => $project,
'title' => $project['name'],
'description' => $this->helper->projectHeader->getDescription($project),
diff --git a/app/Helper/LayoutHelper.php b/app/Helper/LayoutHelper.php
index aeb0c8466..42047dd92 100644
--- a/app/Helper/LayoutHelper.php
+++ b/app/Helper/LayoutHelper.php
@@ -96,7 +96,7 @@ class LayoutHelper extends Base
public function projectUser($template, array $params)
{
$params['filter'] = array('user_id' => $params['user_id']);
- return $this->subLayout('project_user/layout', 'project_user/sidebar', $template, $params);
+ return $this->subLayout('project_user_overview/layout', 'project_user_overview/sidebar', $template, $params);
}
/**
diff --git a/app/Middleware/AuthenticationMiddleware.php b/app/Middleware/AuthenticationMiddleware.php
index c29b7ab60..499843fd0 100644
--- a/app/Middleware/AuthenticationMiddleware.php
+++ b/app/Middleware/AuthenticationMiddleware.php
@@ -39,7 +39,7 @@ class AuthenticationMiddleware extends BaseMiddleware
$this->response->text('Not Authorized', 401);
} else {
$this->sessionStorage->redirectAfterLogin = $this->request->getUri();
- $this->response->redirect($this->helper->url->to('auth', 'login'));
+ $this->response->redirect($this->helper->url->to('AuthController', 'login'));
}
}
}
diff --git a/app/Middleware/PostAuthenticationMiddleware.php b/app/Middleware/PostAuthenticationMiddleware.php
index 650d47aa3..f7eccbce0 100644
--- a/app/Middleware/PostAuthenticationMiddleware.php
+++ b/app/Middleware/PostAuthenticationMiddleware.php
@@ -19,7 +19,7 @@ class PostAuthenticationMiddleware extends BaseMiddleware
{
$controller = strtolower($this->router->getController());
$action = strtolower($this->router->getAction());
- $ignore = ($controller === 'twofactorcontroller' && in_array($action, array('code', 'check'))) || ($controller === 'auth' && $action === 'logout');
+ $ignore = ($controller === 'twofactorcontroller' && in_array($action, array('code', 'check'))) || ($controller === 'authcontroller' && $action === 'logout');
if ($ignore === false && $this->userSession->hasPostAuthentication() && ! $this->userSession->isPostAuthenticationValidated()) {
$this->nextMiddleware = null;
diff --git a/app/ServiceProvider/AuthenticationProvider.php b/app/ServiceProvider/AuthenticationProvider.php
index 3d4c7f6b9..406cf1c29 100644
--- a/app/ServiceProvider/AuthenticationProvider.php
+++ b/app/ServiceProvider/AuthenticationProvider.php
@@ -66,39 +66,39 @@ class AuthenticationProvider implements ServiceProviderInterface
$acl->setRoleHierarchy(Role::PROJECT_MANAGER, array(Role::PROJECT_MEMBER, Role::PROJECT_VIEWER));
$acl->setRoleHierarchy(Role::PROJECT_MEMBER, array(Role::PROJECT_VIEWER));
- $acl->add('Action', '*', Role::PROJECT_MANAGER);
- $acl->add('ActionProject', '*', Role::PROJECT_MANAGER);
- $acl->add('ActionCreation', '*', Role::PROJECT_MANAGER);
- $acl->add('Analytic', '*', Role::PROJECT_MANAGER);
+ $acl->add('ActionController', '*', Role::PROJECT_MANAGER);
+ $acl->add('ProjectActionDuplicationController', '*', Role::PROJECT_MANAGER);
+ $acl->add('ActionCreationController', '*', Role::PROJECT_MANAGER);
+ $acl->add('AnalyticController', '*', Role::PROJECT_MANAGER);
$acl->add('Board', 'save', Role::PROJECT_MEMBER);
- $acl->add('BoardPopover', '*', Role::PROJECT_MEMBER);
+ $acl->add('BoardPopoverController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskPopoverController', '*', Role::PROJECT_MEMBER);
- $acl->add('Calendar', 'save', Role::PROJECT_MEMBER);
- $acl->add('Category', '*', Role::PROJECT_MANAGER);
- $acl->add('Column', '*', Role::PROJECT_MANAGER);
- $acl->add('Comment', '*', Role::PROJECT_MEMBER);
- $acl->add('Customfilter', '*', Role::PROJECT_MEMBER);
- $acl->add('Export', '*', Role::PROJECT_MANAGER);
- $acl->add('TaskFile', array('screenshot', 'create', 'save', 'remove', 'confirm'), Role::PROJECT_MEMBER);
+ $acl->add('CalendarController', 'save', Role::PROJECT_MEMBER);
+ $acl->add('CategoryController', '*', Role::PROJECT_MANAGER);
+ $acl->add('ColumnController', '*', Role::PROJECT_MANAGER);
+ $acl->add('CommentController', '*', Role::PROJECT_MEMBER);
+ $acl->add('CustomFilterController', '*', Role::PROJECT_MEMBER);
+ $acl->add('ExportController', '*', Role::PROJECT_MANAGER);
+ $acl->add('TaskFileController', array('screenshot', 'create', 'save', 'remove', 'confirm'), Role::PROJECT_MEMBER);
$acl->add('Gantt', '*', Role::PROJECT_MANAGER);
$acl->add('ProjectViewController', array('share', 'updateSharing', 'integrations', 'updateIntegrations', 'notifications', 'updateNotifications', 'duplicate', 'doDuplication'), Role::PROJECT_MANAGER);
$acl->add('ProjectPermissionController', '*', Role::PROJECT_MANAGER);
$acl->add('ProjectEditController', '*', Role::PROJECT_MANAGER);
- $acl->add('ProjectFile', '*', Role::PROJECT_MEMBER);
- $acl->add('Projectuser', '*', Role::PROJECT_MANAGER);
+ $acl->add('ProjectFileController', '*', Role::PROJECT_MEMBER);
+ $acl->add('ProjectUserOverviewController', '*', Role::PROJECT_MANAGER);
$acl->add('ProjectStatusController', '*', Role::PROJECT_MANAGER);
$acl->add('SubtaskController', '*', Role::PROJECT_MEMBER);
$acl->add('SubtaskRestrictionController', '*', Role::PROJECT_MEMBER);
$acl->add('SubtaskStatusController', '*', Role::PROJECT_MEMBER);
- $acl->add('Swimlane', '*', Role::PROJECT_MANAGER);
+ $acl->add('SwimlaneController', '*', Role::PROJECT_MANAGER);
$acl->add('TaskViewController', 'remove', Role::PROJECT_MEMBER);
$acl->add('TaskCreationController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskBulkController', '*', Role::PROJECT_MEMBER);
- $acl->add('Taskduplication', '*', Role::PROJECT_MEMBER);
+ $acl->add('TaskDuplicationController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskRecurrenceController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskImportController', '*', Role::PROJECT_MANAGER);
$acl->add('TaskInternalLinkController', '*', Role::PROJECT_MEMBER);
- $acl->add('TaskExternalLink', '*', Role::PROJECT_MEMBER);
+ $acl->add('TaskExternalLinkController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskModificationController', '*', Role::PROJECT_MEMBER);
$acl->add('TaskStatusController', '*', Role::PROJECT_MEMBER);
$acl->add('UserAjaxController', array('mention'), Role::PROJECT_MEMBER);
@@ -120,10 +120,9 @@ class AuthenticationProvider implements ServiceProviderInterface
$acl->setRoleHierarchy(Role::APP_MANAGER, array(Role::APP_USER, Role::APP_PUBLIC));
$acl->setRoleHierarchy(Role::APP_USER, array(Role::APP_PUBLIC));
- $acl->add('Auth', array('login', 'check'), Role::APP_PUBLIC);
+ $acl->add('AuthController', array('login', 'check'), Role::APP_PUBLIC);
$acl->add('CaptchaController', '*', Role::APP_PUBLIC);
- $acl->add('PasswordReset', '*', Role::APP_PUBLIC);
- $acl->add('Webhook', '*', Role::APP_PUBLIC);
+ $acl->add('PasswordResetController', '*', Role::APP_PUBLIC);
$acl->add('TaskViewController', 'readonly', Role::APP_PUBLIC);
$acl->add('Board', 'readonly', Role::APP_PUBLIC);
$acl->add('ICalendarController', '*', Role::APP_PUBLIC);
@@ -137,9 +136,9 @@ class AuthenticationProvider implements ServiceProviderInterface
$acl->add('GroupListController', '*', Role::APP_ADMIN);
$acl->add('GroupCreationController', '*', Role::APP_ADMIN);
$acl->add('GroupModificationController', '*', Role::APP_ADMIN);
- $acl->add('Link', '*', Role::APP_ADMIN);
- $acl->add('ProjectCreation', 'create', Role::APP_MANAGER);
- $acl->add('Projectuser', '*', Role::APP_MANAGER);
+ $acl->add('LinkController', '*', Role::APP_ADMIN);
+ $acl->add('ProjectCreationController', 'create', Role::APP_MANAGER);
+ $acl->add('ProjectUserOverviewController', '*', Role::APP_MANAGER);
$acl->add('TwoFactorController', 'disable', Role::APP_ADMIN);
$acl->add('UserImportController', '*', Role::APP_ADMIN);
$acl->add('UserCreationController', '*', Role::APP_ADMIN);
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php
index c30c15747..0182fb393 100644
--- a/app/ServiceProvider/RouteProvider.php
+++ b/app/ServiceProvider/RouteProvider.php
@@ -45,24 +45,24 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('search/activity', 'SearchController', 'activity');
// ProjectCreation routes
- $container['route']->addRoute('project/create', 'ProjectCreation', 'create');
- $container['route']->addRoute('project/create/private', 'ProjectCreation', 'createPrivate');
+ $container['route']->addRoute('project/create', 'ProjectCreationController', 'create');
+ $container['route']->addRoute('project/create/private', 'ProjectCreationController', 'createPrivate');
// Project routes
$container['route']->addRoute('projects', 'ProjectListController', 'show');
$container['route']->addRoute('project/:project_id', 'ProjectViewController', 'show');
$container['route']->addRoute('p/:project_id', 'ProjectViewController', 'show');
- $container['route']->addRoute('project/:project_id/customer-filters', 'customfilter', 'index');
+ $container['route']->addRoute('project/:project_id/customer-filters', 'CustomFilterController', 'index');
$container['route']->addRoute('project/:project_id/share', 'ProjectViewController', 'share');
$container['route']->addRoute('project/:project_id/notifications', 'ProjectViewController', 'notifications');
$container['route']->addRoute('project/:project_id/integrations', 'ProjectViewController', 'integrations');
$container['route']->addRoute('project/:project_id/duplicate', 'ProjectViewController', 'duplicate');
$container['route']->addRoute('project/:project_id/permissions', 'ProjectPermissionController', 'index');
$container['route']->addRoute('project/:project_id/import', 'TaskImportController', 'step1');
- $container['route']->addRoute('project/:project_id/activity', 'activity', 'project');
+ $container['route']->addRoute('project/:project_id/activity', 'ActivityController', 'project');
// Project Overview
- $container['route']->addRoute('project/:project_id/overview', 'ProjectOverview', 'show');
+ $container['route']->addRoute('project/:project_id/overview', 'ProjectOverviewController', 'show');
// ProjectEdit routes
$container['route']->addRoute('project/:project_id/edit', 'ProjectEditController', 'edit');
@@ -71,48 +71,48 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('project/:project_id/edit/priority', 'ProjectEditController', 'priority');
// ProjectUser routes
- $container['route']->addRoute('projects/managers/:user_id', 'projectuser', 'managers');
- $container['route']->addRoute('projects/members/:user_id', 'projectuser', 'members');
- $container['route']->addRoute('projects/tasks/:user_id/opens', 'projectuser', 'opens');
- $container['route']->addRoute('projects/tasks/:user_id/closed', 'projectuser', 'closed');
- $container['route']->addRoute('projects/managers', 'projectuser', 'managers');
+ $container['route']->addRoute('projects/managers/:user_id', 'ProjectUserOverviewController', 'managers');
+ $container['route']->addRoute('projects/members/:user_id', 'ProjectUserOverviewController', 'members');
+ $container['route']->addRoute('projects/tasks/:user_id/opens', 'ProjectUserOverviewController', 'opens');
+ $container['route']->addRoute('projects/tasks/:user_id/closed', 'ProjectUserOverviewController', 'closed');
+ $container['route']->addRoute('projects/managers', 'ProjectUserOverviewController', 'managers');
// Action routes
- $container['route']->addRoute('project/:project_id/actions', 'action', 'index');
+ $container['route']->addRoute('project/:project_id/actions', 'ActionController', 'index');
// Column routes
- $container['route']->addRoute('project/:project_id/columns', 'column', 'index');
+ $container['route']->addRoute('project/:project_id/columns', 'ColumnController', 'index');
// Swimlane routes
- $container['route']->addRoute('project/:project_id/swimlanes', 'swimlane', 'index');
+ $container['route']->addRoute('project/:project_id/swimlanes', 'SwimlaneController', 'index');
// Category routes
- $container['route']->addRoute('project/:project_id/categories', 'category', 'index');
+ $container['route']->addRoute('project/:project_id/categories', 'CategoryController', 'index');
// Task routes
$container['route']->addRoute('project/:project_id/task/:task_id', 'TaskViewController', 'show');
$container['route']->addRoute('t/:task_id', 'TaskViewController', 'show');
$container['route']->addRoute('public/task/:task_id/:token', 'TaskViewController', 'readonly');
- $container['route']->addRoute('project/:project_id/task/:task_id/activity', 'activity', 'task');
+ $container['route']->addRoute('project/:project_id/task/:task_id/activity', 'ActivityController', 'task');
$container['route']->addRoute('project/:project_id/task/:task_id/transitions', 'TaskViewController', 'transitions');
$container['route']->addRoute('project/:project_id/task/:task_id/analytics', 'TaskViewController', 'analytics');
$container['route']->addRoute('project/:project_id/task/:task_id/time-tracking', 'TaskViewController', 'timetracking');
// Exports
- $container['route']->addRoute('export/tasks/:project_id', 'export', 'tasks');
- $container['route']->addRoute('export/subtasks/:project_id', 'export', 'subtasks');
- $container['route']->addRoute('export/transitions/:project_id', 'export', 'transitions');
- $container['route']->addRoute('export/summary/:project_id', 'export', 'summary');
+ $container['route']->addRoute('export/tasks/:project_id', 'ExportController', 'tasks');
+ $container['route']->addRoute('export/subtasks/:project_id', 'ExportController', 'subtasks');
+ $container['route']->addRoute('export/transitions/:project_id', 'ExportController', 'transitions');
+ $container['route']->addRoute('export/summary/:project_id', 'ExportController', 'summary');
// Analytics routes
- $container['route']->addRoute('analytics/tasks/:project_id', 'analytic', 'tasks');
- $container['route']->addRoute('analytics/users/:project_id', 'analytic', 'users');
- $container['route']->addRoute('analytics/cfd/:project_id', 'analytic', 'cfd');
- $container['route']->addRoute('analytics/burndown/:project_id', 'analytic', 'burndown');
- $container['route']->addRoute('analytics/average-time-column/:project_id', 'analytic', 'averageTimeByColumn');
- $container['route']->addRoute('analytics/lead-cycle-time/:project_id', 'analytic', 'leadAndCycleTime');
- $container['route']->addRoute('analytics/estimated-spent-time/:project_id', 'analytic', 'compareHours');
+ $container['route']->addRoute('analytics/tasks/:project_id', 'AnalyticController', 'tasks');
+ $container['route']->addRoute('analytics/users/:project_id', 'AnalyticController', 'users');
+ $container['route']->addRoute('analytics/cfd/:project_id', 'AnalyticController', 'cfd');
+ $container['route']->addRoute('analytics/burndown/:project_id', 'AnalyticController', 'burndown');
+ $container['route']->addRoute('analytics/average-time-column/:project_id', 'AnalyticController', 'averageTimeByColumn');
+ $container['route']->addRoute('analytics/lead-cycle-time/:project_id', 'AnalyticController', 'leadAndCycleTime');
+ $container['route']->addRoute('analytics/estimated-spent-time/:project_id', 'AnalyticController', 'compareHours');
// Board routes
$container['route']->addRoute('board/:project_id', 'board', 'show');
@@ -120,12 +120,12 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('public/board/:token', 'board', 'readonly');
// Calendar routes
- $container['route']->addRoute('calendar/:project_id', 'calendar', 'show');
- $container['route']->addRoute('c/:project_id', 'calendar', 'show');
+ $container['route']->addRoute('calendar/:project_id', 'CalendarController', 'show');
+ $container['route']->addRoute('c/:project_id', 'CalendarController', 'show');
// Listing routes
- $container['route']->addRoute('list/:project_id', 'listing', 'show');
- $container['route']->addRoute('l/:project_id', 'listing', 'show');
+ $container['route']->addRoute('list/:project_id', 'TaskListController', 'show');
+ $container['route']->addRoute('l/:project_id', 'TaskListController', 'show');
// Gantt routes
$container['route']->addRoute('gantt/:project_id', 'gantt', 'project');
@@ -170,7 +170,7 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('settings/integrations', 'ConfigController', 'integrations');
$container['route']->addRoute('settings/webhook', 'ConfigController', 'webhook');
$container['route']->addRoute('settings/api', 'ConfigController', 'api');
- $container['route']->addRoute('settings/links', 'link', 'index');
+ $container['route']->addRoute('settings/links', 'LinkController', 'index');
$container['route']->addRoute('settings/currencies', 'CurrencyController', 'index');
// Plugins
@@ -182,12 +182,12 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('documentation', 'DocumentationController', 'show');
// Auth routes
- $container['route']->addRoute('login', 'auth', 'login');
- $container['route']->addRoute('logout', 'auth', 'logout');
+ $container['route']->addRoute('login', 'AuthController', 'login');
+ $container['route']->addRoute('logout', 'AuthController', 'logout');
// PasswordReset
- $container['route']->addRoute('forgot-password', 'PasswordReset', 'create');
- $container['route']->addRoute('forgot-password/change/:token', 'PasswordReset', 'change');
+ $container['route']->addRoute('forgot-password', 'PasswordResetController', 'create');
+ $container['route']->addRoute('forgot-password/change/:token', 'PasswordResetController', 'change');
}
return $container;
diff --git a/app/Template/action/index.php b/app/Template/action/index.php
index 63d638872..0a94e4f0c 100644
--- a/app/Template/action/index.php
+++ b/app/Template/action/index.php
@@ -3,11 +3,11 @@
- = $this->url->link(t('Add a new action'), 'ActionCreation', 'create', array('project_id' => $project['id']), false, 'popover') ?>
+ = $this->url->link(t('Add a new action'), 'ActionCreationController', 'create', array('project_id' => $project['id']), false, 'popover') ?>
- = $this->url->link(t('Import from another project'), 'ActionProject', 'project', array('project_id' => $project['id']), false, 'popover') ?>
+ = $this->url->link(t('Import from another project'), 'ProjectActionDuplicationController', 'show', array('project_id' => $project['id']), false, 'popover') ?>
@@ -63,9 +63,9 @@
- = $this->url->link(t('Remove'), 'action', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id']), false, 'popover') ?>
+ = $this->url->link(t('Remove'), 'ActionController', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id']), false, 'popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/action/remove.php b/app/Template/action/remove.php
index 070a79181..384bec7ad 100644
--- a/app/Template/action/remove.php
+++ b/app/Template/action/remove.php
@@ -8,8 +8,8 @@
- = $this->url->link(t('Yes'), 'action', 'remove', array('project_id' => $project['id'], 'action_id' => $action['id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'ActionController', 'remove', array('project_id' => $project['id'], 'action_id' => $action['id']), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
+ = $this->url->link(t('cancel'), 'ActionController', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/action_creation/create.php b/app/Template/action_creation/create.php
index bccb19b37..c0d2880e3 100644
--- a/app/Template/action_creation/create.php
+++ b/app/Template/action_creation/create.php
@@ -1,7 +1,7 @@
-
\ No newline at end of file
+
diff --git a/app/Template/action_creation/event.php b/app/Template/action_creation/event.php
index e7e5aaf9b..cdf003101 100644
--- a/app/Template/action_creation/event.php
+++ b/app/Template/action_creation/event.php
@@ -2,7 +2,7 @@
= t('Choose an event') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/action_creation/params.php b/app/Template/action_creation/params.php
index 46ca52a4e..fa892177f 100644
--- a/app/Template/action_creation/params.php
+++ b/app/Template/action_creation/params.php
@@ -2,7 +2,7 @@
= t('Define action parameters') ?>
-
diff --git a/app/Template/activity/project.php b/app/Template/activity/project.php
index 70235cfca..ce1c8c0ff 100644
--- a/app/Template/activity/project.php
+++ b/app/Template/activity/project.php
@@ -1,5 +1,5 @@
- = $this->projectHeader->render($project, 'Analytic', $this->app->getRouterAction()) ?>
+ = $this->projectHeader->render($project, 'AnalyticController', $this->app->getRouterAction()) ?>
app->config('password_reset') == 1): ?>
- = $this->url->link(t('Forgot password?'), 'PasswordReset', 'create') ?>
+ = $this->url->link(t('Forgot password?'), 'PasswordResetController', 'create') ?>
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php
index eced52dca..f7a9f6ad3 100644
--- a/app/Template/board/table_column.php
+++ b/app/Template/board/table_column.php
@@ -43,7 +43,7 @@
0): ?>
- = $this->url->link(t('Close all tasks of this column'), 'BoardPopover', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?>
+ = $this->url->link(t('Close all tasks of this column'), 'BoardPopoverController', 'confirmCloseColumnTasks', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?>
diff --git a/app/Template/board/table_swimlane.php b/app/Template/board/table_swimlane.php
index 349b9acb9..c5937e012 100644
--- a/app/Template/board/table_swimlane.php
+++ b/app/Template/board/table_swimlane.php
@@ -14,7 +14,7 @@
+ data-href="= $this->url->href('BoardTooltipController', 'swimlane', array('swimlane_id' => $swimlane['id'], 'project_id' => $project['id'])) ?>">
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 67cae77a5..8cf3e709c 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -34,35 +34,35 @@
-
+
-
+
- = $task['nb_links'] ?>
+ = $task['nb_links'] ?>
- = $task['nb_external_links'] ?>
+ = $task['nb_external_links'] ?>
- = round($task['nb_completed_subtasks']/$task['nb_subtasks']*100, 0).'%' ?>
+ = round($task['nb_completed_subtasks']/$task['nb_subtasks']*100, 0).'%' ?>
- = $task['nb_files'] ?>
+ = $task['nb_files'] ?>
- = $task['nb_comments'] ?>
+ = $task['nb_comments'] ?>
-
+
diff --git a/app/Template/board/tooltip_files.php b/app/Template/board/tooltip_files.php
index 5ade5b5b6..6f9e26402 100644
--- a/app/Template/board/tooltip_files.php
+++ b/app/Template/board/tooltip_files.php
@@ -9,9 +9,9 @@
- = $this->url->link(t('download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
+ = $this->url->link(t('download'), 'FileViewerController', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
- = $this->url->link(t('open file'), 'FileViewer', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
+ = $this->url->link(t('open file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
diff --git a/app/Template/board_popover/close_all_tasks_column.php b/app/Template/board_popover/close_all_tasks_column.php
index 5090f4996..bd167786c 100644
--- a/app/Template/board_popover/close_all_tasks_column.php
+++ b/app/Template/board_popover/close_all_tasks_column.php
@@ -2,7 +2,7 @@
-
-
\ No newline at end of file
+
diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php
index f00e810b8..3635f627f 100644
--- a/app/Template/calendar/show.php
+++ b/app/Template/calendar/show.php
@@ -1,9 +1,9 @@
- = $this->projectHeader->render($project, 'Calendar', 'show') ?>
+ = $this->projectHeader->render($project, 'CalendarController', 'show') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php
index 7b5926896..fac56db31 100644
--- a/app/Template/category/edit.php
+++ b/app/Template/category/edit.php
@@ -2,7 +2,7 @@
= t('Category modification for the project "%s"', $project['name']) ?>
-
\ No newline at end of file
+
diff --git a/app/Template/category/index.php b/app/Template/category/index.php
index b3bdfd813..a103d89f5 100644
--- a/app/Template/category/index.php
+++ b/app/Template/category/index.php
@@ -15,10 +15,10 @@
- = $this->url->link(t('Edit'), 'category', 'edit', array('project_id' => $project['id'], 'category_id' => $category_id), false, 'popover') ?>
+ = $this->url->link(t('Edit'), 'CategoryController', 'edit', array('project_id' => $project['id'], 'category_id' => $category_id), false, 'popover') ?>
- = $this->url->link(t('Remove'), 'category', 'confirm', array('project_id' => $project['id'], 'category_id' => $category_id), false, 'popover') ?>
+ = $this->url->link(t('Remove'), 'CategoryController', 'confirm', array('project_id' => $project['id'], 'category_id' => $category_id), false, 'popover') ?>
@@ -31,7 +31,7 @@
-
\ No newline at end of file
+
diff --git a/app/Template/category/remove.php b/app/Template/category/remove.php
index cad58d372..e7b9c9b42 100644
--- a/app/Template/category/remove.php
+++ b/app/Template/category/remove.php
@@ -9,9 +9,9 @@
- = $this->url->link(t('Yes'), 'category', 'remove', array('project_id' => $project['id'], 'category_id' => $category['id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'CategoryController', 'remove', array('project_id' => $project['id'], 'category_id' => $category['id']), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->url->link(t('cancel'), 'category', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
+ = $this->url->link(t('cancel'), 'CategoryController', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/column/create.php b/app/Template/column/create.php
index 2d325f766..023de525a 100644
--- a/app/Template/column/create.php
+++ b/app/Template/column/create.php
@@ -1,7 +1,7 @@
-
\ No newline at end of file
+
diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php
index 412858a9f..a742e4b99 100644
--- a/app/Template/column/edit.php
+++ b/app/Template/column/edit.php
@@ -2,7 +2,7 @@
= t('Edit column "%s"', $column['title']) ?>
-
\ No newline at end of file
+
diff --git a/app/Template/column/index.php b/app/Template/column/index.php
index 6bc67c5aa..4f5f0a603 100644
--- a/app/Template/column/index.php
+++ b/app/Template/column/index.php
@@ -3,7 +3,7 @@
- = $this->url->link(t('Add a new column'), 'Column', 'create', array('project_id' => $project['id']), false, 'popover') ?>
+ = $this->url->link(t('Add a new column'), 'ColumnController', 'create', array('project_id' => $project['id']), false, 'popover') ?>
@@ -13,7 +13,7 @@
+ data-save-position-url="= $this->url->href('ColumnController', 'move', array('project_id' => $project['id'])) ?>">
= t('Column title') ?>
@@ -41,10 +41,10 @@
- = $this->url->link(t('Edit'), 'column', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id']), false, 'popover') ?>
+ = $this->url->link(t('Edit'), 'ColumnController', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id']), false, 'popover') ?>
- = $this->url->link(t('Remove'), 'column', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id']), false, 'popover') ?>
+ = $this->url->link(t('Remove'), 'ColumnController', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id']), false, 'popover') ?>
diff --git a/app/Template/column/remove.php b/app/Template/column/remove.php
index ccab889d8..b231a9a70 100644
--- a/app/Template/column/remove.php
+++ b/app/Template/column/remove.php
@@ -9,7 +9,7 @@
- = $this->url->link(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?>
- = t('or') ?> = $this->url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
+ = $this->url->link(t('Yes'), 'ColumnController', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?>
+ = t('or') ?> = $this->url->link(t('cancel'), 'ColumnController', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php
index 2a92a2f83..0358107a3 100644
--- a/app/Template/comment/create.php
+++ b/app/Template/comment/create.php
@@ -1,7 +1,7 @@
-
@@ -30,4 +30,4 @@
= t('There is no link.') ?>
-= $this->render('link/create', array('values' => $values, 'errors' => $errors)) ?>
\ No newline at end of file
+= $this->render('link/create', array('values' => $values, 'errors' => $errors)) ?>
diff --git a/app/Template/link/remove.php b/app/Template/link/remove.php
index 12ca14bbf..b7fbef5e3 100644
--- a/app/Template/link/remove.php
+++ b/app/Template/link/remove.php
@@ -8,8 +8,8 @@
- = $this->url->link(t('Yes'), 'link', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'LinkController', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->url->link(t('cancel'), 'link', 'index') ?>
+ = $this->url->link(t('cancel'), 'LinkController', 'index') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/password_reset/change.php b/app/Template/password_reset/change.php
index 0a1d8de48..80a035da6 100644
--- a/app/Template/password_reset/change.php
+++ b/app/Template/password_reset/change.php
@@ -1,6 +1,6 @@
= t('Password Reset') ?>
-
+
= $this->form->csrf() ?>
= $this->form->label(t('New password'), 'password') ?>
@@ -13,4 +13,4 @@
= t('Change Password') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/password_reset/create.php b/app/Template/password_reset/create.php
index f1877aa7a..f43d95fcc 100644
--- a/app/Template/password_reset/create.php
+++ b/app/Template/password_reset/create.php
@@ -1,6 +1,6 @@
-
\ No newline at end of file
+
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php
index 0f58c112e..3fac3fd19 100644
--- a/app/Template/project/sidebar.php
+++ b/app/Template/project/sidebar.php
@@ -4,9 +4,9 @@
app->checkMenuSelection('ProjectViewController', 'show') ?>>
= $this->url->link(t('Summary'), 'ProjectViewController', 'show', array('project_id' => $project['id'])) ?>
- user->hasProjectAccess('customfilter', 'index', $project['id'])): ?>
- app->checkMenuSelection('customfilter') ?>>
- = $this->url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?>
+ user->hasProjectAccess('CustomFilterController', 'index', $project['id'])): ?>
+ app->checkMenuSelection('CustomFilterController') ?>>
+ = $this->url->link(t('Custom filters'), 'CustomFilterController', 'index', array('project_id' => $project['id'])) ?>
@@ -23,22 +23,22 @@
app->checkMenuSelection('ProjectViewController', 'integrations') ?>>
= $this->url->link(t('Integrations'), 'ProjectViewController', 'integrations', array('project_id' => $project['id'])) ?>
- app->checkMenuSelection('column') ?>>
- = $this->url->link(t('Columns'), 'column', 'index', array('project_id' => $project['id'])) ?>
+ app->checkMenuSelection('ColumnController') ?>>
+ = $this->url->link(t('Columns'), 'ColumnController', 'index', array('project_id' => $project['id'])) ?>
- app->checkMenuSelection('swimlane') ?>>
- = $this->url->link(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>
+ app->checkMenuSelection('SwimlaneController') ?>>
+ = $this->url->link(t('Swimlanes'), 'SwimlaneController', 'index', array('project_id' => $project['id'])) ?>
app->checkMenuSelection('category') ?>>
- = $this->url->link(t('Categories'), 'category', 'index', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('Categories'), 'CategoryController', 'index', array('project_id' => $project['id'])) ?>
app->checkMenuSelection('ProjectPermissionController') ?>>
= $this->url->link(t('Permissions'), 'ProjectPermissionController', 'index', array('project_id' => $project['id'])) ?>
- app->checkMenuSelection('action') ?>>
- = $this->url->link(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
+ app->checkMenuSelection('ActionController') ?>>
+ = $this->url->link(t('Automatic actions'), 'ActionController', 'index', array('project_id' => $project['id'])) ?>
app->checkMenuSelection('ProjectViewController', 'duplicate') ?>>
= $this->url->link(t('Duplicate'), 'ProjectViewController', 'duplicate', array('project_id' => $project['id'])) ?>
diff --git a/app/Template/action_project/project.php b/app/Template/project_action_duplication/show.php
similarity index 84%
rename from app/Template/action_project/project.php
rename to app/Template/project_action_duplication/show.php
index 226f3b190..2eebb262b 100644
--- a/app/Template/action_project/project.php
+++ b/app/Template/project_action_duplication/show.php
@@ -4,8 +4,7 @@
= t('There is no available project.') ?>
-
-
+
= $this->form->csrf() ?>
= $this->form->label(t('Create from another project'), 'src_project_id') ?>
@@ -17,4 +16,4 @@
= $this->url->link(t('cancel'), 'Action', 'index', array(), false, 'close-popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/project_creation/create.php b/app/Template/project_creation/create.php
index ea5783a67..fb892012d 100644
--- a/app/Template/project_creation/create.php
+++ b/app/Template/project_creation/create.php
@@ -2,7 +2,7 @@
-
+
= $this->form->csrf() ?>
= $this->form->hidden('is_private', $values) ?>
diff --git a/app/Template/project_edit/general.php b/app/Template/project_edit/general.php
index b817bcd48..c74214776 100644
--- a/app/Template/project_edit/general.php
+++ b/app/Template/project_edit/general.php
@@ -24,7 +24,7 @@
= $this->form->select('owner_id', $owners, $values, $errors) ?>
- user->hasProjectAccess('ProjectCreation', 'create', $project['id'])): ?>
+ user->hasProjectAccess('ProjectCreationController', 'create', $project['id'])): ?>
= $this->form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>
= t('Private projects do not have users and groups management.') ?>
diff --git a/app/Template/project_file/create.php b/app/Template/project_file/create.php
index 9858b273d..e262799b5 100644
--- a/app/Template/project_file/create.php
+++ b/app/Template/project_file/create.php
@@ -4,7 +4,7 @@
= t('All files have been uploaded successfully.') ?>
- = $this->url->link(t('View uploaded files'), 'ProjectOverview', 'show', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('View uploaded files'), 'ProjectOverviewController', 'show', array('project_id' => $project['id'])) ?>
@@ -18,7 +18,7 @@
+ data-url="= $this->url->href('ProjectFileController', 'save', array('project_id' => $project['id'])) ?>">
@@ -29,5 +29,5 @@
= t('or') ?>
- = $this->url->link(t('cancel'), 'ProjectOverview', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
+ = $this->url->link(t('cancel'), 'ProjectOverviewController', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
diff --git a/app/Template/project_file/remove.php b/app/Template/project_file/remove.php
index ba8342884..0517a9e7e 100644
--- a/app/Template/project_file/remove.php
+++ b/app/Template/project_file/remove.php
@@ -8,8 +8,8 @@
- = $this->url->link(t('Yes'), 'ProjectFile', 'remove', array('project_id' => $project['id'], 'file_id' => $file['id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'ProjectFileController', 'remove', array('project_id' => $project['id'], 'file_id' => $file['id']), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->url->link(t('cancel'), 'ProjectOverview', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
+ = $this->url->link(t('cancel'), 'ProjectOverviewController', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
-
\ No newline at end of file
+
diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php
index 5a27e981f..d98552e6e 100644
--- a/app/Template/project_header/dropdown.php
+++ b/app/Template/project_header/dropdown.php
@@ -39,13 +39,13 @@
- = $this->url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?>
- user->hasProjectAccess('customfilter', 'index', $project['id'])): ?>
+ user->hasProjectAccess('CustomFilterController', 'index', $project['id'])): ?>
- = $this->url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('Custom filters'), 'CustomFilterController', 'index', array('project_id' => $project['id'])) ?>
@@ -58,17 +58,17 @@
= $this->hook->render('template:project:dropdown', array('project' => $project)) ?>
- user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?>
+ user->hasProjectAccess('AnalyticController', 'tasks', $project['id'])): ?>
- = $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('Analytics'), 'AnalyticController', 'tasks', array('project_id' => $project['id'])) ?>
- user->hasProjectAccess('export', 'tasks', $project['id'])): ?>
+ user->hasProjectAccess('ExportController', 'tasks', $project['id'])): ?>
- = $this->url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
+ = $this->url->link(t('Exports'), 'ExportController', 'tasks', array('project_id' => $project['id'])) ?>
diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php
index 353e4b624..e444235ad 100644
--- a/app/Template/project_header/views.php
+++ b/app/Template/project_header/views.php
@@ -1,24 +1,24 @@
- app->getRouterController() === 'ProjectOverview' ? 'class="active"' : '' ?>>
+ app->checkMenuSelection('ProjectOverviewController') ?>>
- = $this->url->link(t('Overview'), 'ProjectOverview', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-overview', t('Keyboard shortcut: "%s"', 'v o')) ?>
+ = $this->url->link(t('Overview'), 'ProjectOverviewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-overview', t('Keyboard shortcut: "%s"', 'v o')) ?>
- app->getRouterController() === 'Board' ? 'class="active"' : '' ?>>
+ app->checkMenuSelection('Board') ?>>
= $this->url->link(t('Board'), 'board', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?>
- app->getRouterController() === 'Calendar' ? 'class="active"' : '' ?>>
+ app->checkMenuSelection('Calendar') ?>>
- = $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
+ = $this->url->link(t('Calendar'), 'CalendarController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
- app->getRouterController() === 'Listing' ? 'class="active"' : '' ?>>
+ app->checkMenuSelection('TaskListController') ?>>
- = $this->url->link(t('List'), 'listing', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?>
+ = $this->url->link(t('List'), 'TaskListController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?>
user->hasProjectAccess('gantt', 'project', $project['id'])): ?>
- app->getRouterController() === 'Gantt' ? 'class="active"' : '' ?>>
+ app->checkMenuSelection('Gantt') ?>>
= $this->url->link(t('Gantt'), 'gantt', 'project', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-gantt', t('Keyboard shortcut: "%s"', 'v g')) ?>
-
\ No newline at end of file
+
diff --git a/app/Template/project_list/show.php b/app/Template/project_list/show.php
index 06e4a626e..3fd69f418 100644
--- a/app/Template/project_list/show.php
+++ b/app/Template/project_list/show.php
@@ -1,8 +1,8 @@