mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
Add a list of user groups in User menu, and implements the feature to add / remove users
This commit is contained in:
@@ -60,7 +60,6 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
||||
|
||||
$nbNotifications = $this->notificationByUserCounter->countUnreadByUser($user);
|
||||
|
||||
// TODO add an icon? How exactly? For example a clock icon...
|
||||
$menu
|
||||
->addChild($this->translator->trans('absence.Set absence date'), [
|
||||
'route' => 'chill_main_user_absence_index',
|
||||
@@ -69,6 +68,14 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
||||
'order' => -8_888_888,
|
||||
]);
|
||||
|
||||
$menu
|
||||
->addChild($this->translator->trans('user_group.my_groups'), [
|
||||
'route' => 'chill_main_user_groups_my',
|
||||
])
|
||||
->setExtras([
|
||||
'order' => -7_777_777,
|
||||
]);
|
||||
|
||||
$menu
|
||||
->addChild(
|
||||
$this->translator->trans('notification.My notifications with counter', ['nb' => $nbNotifications]),
|
||||
|
Reference in New Issue
Block a user