diff --git a/Web/Presenters/templates/User/View.xml b/Web/Presenters/templates/User/View.xml index 9c013dd1..c9e1a800 100644 --- a/Web/Presenters/templates/User/View.xml +++ b/Web/Presenters/templates/User/View.xml @@ -458,8 +458,11 @@ {_birth_date}: - {$user->getBirthday()->format('%e %B %Y')}, + {if $user->onlineStatus() != 2 && $user->getBirthdayPrivacy() == 0} + {$user->getBirthday()->format('%e %B %Y')}, {tr("years", $user->getAge())} + {/if} + {$user->getBirthday()->format('%e %B %Y')} {$user->getBirthday()->format('%e %B')}