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

@@ -6,7 +6,7 @@
{%- if opts['main_scope'] and user.mainScope is not null %}
<span class="main-scope">({{ user.mainScope.name|localize_translatable_string }})</span>
{%- endif -%}
{%- if opts['absence'] and user.absenceStart is not null %}
{%- if opts['absence'] and user.isAbsent %}
{%- if date(user.absenceStart) < date() %}
<span class="fa-stack fa-holder" title="{{ 'absence.Absent'|trans }}">
<i class="fa fa-circle fa-stack-1x text-danger"></i>