wiki-grav/plugins/flex-objects/templates/flex/user-accounts/object/default.html.twig
2022-04-24 14:32:58 +02:00

18 lines
425 B
Twig

{% set mailto = object.fullname|default(object.key) ~ ' <' ~ object.email ~ '>' %}
{% set avatar = object.getAvatarUrl %}
<h2>{{ object.fullname }}</h2>
<div>
{% if object.title %}
<div>
Role: {{ object.title|e }}
</div>
{% endif %}
{% block avatar %}
<img src="{{ avatar|e }}" alt="">
{% endblock %}
<div>
<a href="mailto:{{ mailto|e }}">{{ mailto|e }}</a>
</div>
</div>