mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
FEATURE [banner][render] display the A icon within accourse banner if user is absent instead of string
This commit is contained in:
@@ -87,6 +87,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
|
||||
'user_job' => $this->normalizer->normalize($object->getUserJob(), $format, $userJobContext),
|
||||
'main_center' => $this->normalizer->normalize($object->getMainCenter(), $format, $centerContext),
|
||||
'main_scope' => $this->normalizer->normalize($object->getMainScope(), $format, $scopeContext),
|
||||
'isAbsent' => $object->isAbsent()
|
||||
];
|
||||
|
||||
if ('docgen' === $format) {
|
||||
|
@@ -71,10 +71,6 @@ class UserRender implements ChillEntityRenderInterface
|
||||
|
||||
$current_date = new DateTimeImmutable();
|
||||
|
||||
if ($entity->isAbsent() && $opts['main_scope']) {
|
||||
$str .= ' (' . $this->translator->trans('absence.Absent') . ')';
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user