webseite-grav/plugins/flex-objects/templates/flex/user-accounts/object/default.html.twig

18 lines
425 B
Twig
Raw Normal View History

2021-04-30 11:23:26 +02:00
{% 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>