mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Insert "my tasks" link in user menu
This commit is contained in:
parent
258a280784
commit
3719ce0896
@ -283,6 +283,21 @@ class SingleTaskController extends Controller
|
|||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
|
* @Route(
|
||||||
|
* "/{_locale}/task/single-task/list/my",
|
||||||
|
* options={ "menus": { "user": { "order": -10, "label": "My tasks", "icon": "tasks" } } }
|
||||||
|
* )
|
||||||
|
*/
|
||||||
|
public function myTasksAction()
|
||||||
|
{
|
||||||
|
return $this->redirectToRoute('chill_task_singletask_list', [
|
||||||
|
'user_id' => $this->getUser()->getId()
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route(
|
* @Route(
|
||||||
|
@ -35,6 +35,7 @@ User: Utilisateur
|
|||||||
'Are you sure you want to remove the task about "%name%" ?': 'Êtes-vous sûr·e de vouloir supprimer la tâche de "%name%"?'
|
'Are you sure you want to remove the task about "%name%" ?': 'Êtes-vous sûr·e de vouloir supprimer la tâche de "%name%"?'
|
||||||
|
|
||||||
Associated tasks: Tâches associées
|
Associated tasks: Tâches associées
|
||||||
|
My tasks: Mes tâches
|
||||||
|
|
||||||
#Flash messages
|
#Flash messages
|
||||||
'The task is created': 'La tâche a été créée'
|
'The task is created': 'La tâche a été créée'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user