{% set isCompound = compound is defined and compound|length > 0 %}
{% set numberOfProjects = null %}
{% set developerName = '' %}
{% set imageSize = 56 %}
{% set logo = listing.logo ? listing.logo.file : null %}
{% set developerLogo = logo ? logo : userLogo %}
{% if isCompound %}
{% set numberOfProjects = compound.numberOfProjects %}
{% set developerName = compound.developerName %}
{% endif %}
<div class="user-info d-flex w-100">
<div class="user-card__img-container user-card__img-container_ml-0 rounded-circle">
{% if developerLogo %}
<img class="user-card__img lazyload"
src="/images/BrandsIcons/listing/ic_profile.svg"
data-src="{{ custom_vich_uploader_asset(developerLogo, 'file') | thumbnail('logo') }}"
alt="{{ developerName }}" width="{{imageSize}}" height="{{imageSize}}" />
{% else %}
<img class="user-card__img lazyload rounded-circle user-card__img_empty"
src="" data-src="/images/BrandsIcons/listing/ic_profile.svg"
alt="compound-logo" width="{{imageSize}}" height="{{imageSize}}" />
{% endif %}
</div>
<div class="user-card__data w-80 np-border">
<div class="user-card__name">
<b class="user-card__name-text" title="{{ developerName }}">{{ developerName }}</b>
</div>
<div class="user-card__stat">
<span class="user-card__joined-text w-100">
{% if numberOfProjects is not null %}
{% trans with {'%count%': numberOfProjects} %}
labels.compound.aqarmap_projects
{% endtrans %}
{% endif %}
</span>
</div>
</div>
</div>