{% if app.user.gruppi == null or app.user.gruppi|length == 0 %}{{ 'Operator'|trans }}{% else %}{{ app.user.gruppi|first.nome|trans }}{% endif %}: {% if app.user is not null and app.user.profilo is not null %}{{ app.user.profilo.nome ~ " " ~ app.user.profilo.cognome }}{% endif %}
{{ 'Last login on'|trans }}: {{ lastlogin|localizeddate }} From: {% if lastlogininfo != null %}
{% set geodata = lastlogininfo %}
{% if geodata and geodata.city|default('') != '' and geodata.country|default('') != '' %}
{% if geodata and geodata.region|default('') != '' %}
{{ geodata.city ~ ' (' ~ geodata.region ~ ' - ' ~ geodata.country ~ ')' }}
{% else %}
{{ geodata.city ~ ' (' ~ geodata.country ~ ')' }}
{% endif %}
{% else %}
{% endif %}
{% if geodata and geodata.region|default('') != '' %}
{% else %}
{% endif %}
{% endif %}
 }})