{% set account = _args.account|default(null) %}
{% set center = _args.center|default(false) %}
{% set bigAvatar = _args.bigAvatar|default(false) %}
{% set avatar = (account is not null and account.systemProfile.hasAvatar)
? s3_entity(account, '/avatar/' ~ (bigAvatar ? 'feature' : 'thumb'))
: null
%}
{% set oneroster = (account is not null and account.onerosterId is not null) %}
{% set title = (account is not null and account.displayName(false) is not empty)
? account.displayName(false)
: account is not null ? account.email : '@'
%}
{% if avatar is not empty %}
<img class="round {% if center %} center-block{% endif %}" src="{{ avatar }}" alt="" title="{{ title }}"/>
{% else %}
<style type="text/css">
div.big-avatar {
width: 164px;
height: 164px;
font-size: 64px;
line-height: 164px;
}
</style>
<div class="round pic-na{% if oneroster %} pic-na-clever{% endif %}{% if center %} center-block{% endif %}{% if bigAvatar %} big-avatar{% endif %}">
{{ title|slice(0, 1)|upper }}
</div>
{% endif %}