FEATURE [absence][render] add absence tag to renderbox and renderstring

This commit is contained in:
2023-01-12 13:30:28 +01:00
parent 2c5c815f68
commit 5bbe5af124
3 changed files with 20 additions and 2 deletions

View File

@@ -6,4 +6,9 @@
{%- 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 date(user.absenceStart) < date() %}
<span class="user-absence">({{ 'absence.Absent'|trans }})</span>
{%- endif %}
{%- endif -%}
</span>