FIX [render] use isAbsent method to render user as absent or not + place homepage msg above searchbar

This commit is contained in:
2023-01-27 11:10:17 +01:00
parent f76c031ff3
commit bb7d072cc8
5 changed files with 8 additions and 8 deletions

View File

@@ -1,10 +1,5 @@
<div class="col-10 mt-5">
{# vue component #}
{% if app.user.absenceStart is not null and date(app.user.absenceStart) < date() %}
<p class="alert alert-warning" role="alert">{{'absence.You are marked as being absent'|trans }}</p>
{% endif %}
<div id="homepage_widget"></div>
{% include '@ChillMain/Homepage/fast_actions.html.twig' %}