src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/compoundCardDeveloperData.html.twig line 18

Open in your IDE?
  1. {% set isCompound = compound is defined and compound|length > 0 %}
  2. {% set numberOfProjects =  null %}
  3. {% set developerName = '' %}
  4. {% set imageSize = 56 %}
  5. {% set logo = listing.logo ? listing.logo.file : null %}
  6. {% set developerLogo = logo ? logo : userLogo %}
  7. {% if isCompound  %}
  8.     {% set numberOfProjects = compound.numberOfProjects %}
  9.     {% set developerName =  compound.developerName %}
  10. {% endif %}
  11. <div class="user-info d-flex w-100">
  12.     <div class="user-card__img-container user-card__img-container_ml-0 rounded-circle">
  13.         {% if developerLogo %}
  14.             <img class="user-card__img lazyload"
  15.                 src="/images/BrandsIcons/listing/ic_profile.svg"
  16.                 data-src="{{ custom_vich_uploader_asset(developerLogo, 'file')  | thumbnail('logo') }}"
  17.                 alt="{{ developerName }}" width="{{imageSize}}" height="{{imageSize}}" />
  18.         {% else %}
  19.             <img class="user-card__img lazyload rounded-circle user-card__img_empty"
  20.                 src="" data-src="/images/BrandsIcons/listing/ic_profile.svg"
  21.                 alt="compound-logo" width="{{imageSize}}" height="{{imageSize}}" />
  22.         {% endif %}
  23.     </div>
  24.     <div class="user-card__data w-80 np-border">
  25.         <div class="user-card__name">
  26.             <b class="user-card__name-text" title="{{ developerName }}">{{ developerName }}</b>
  27.         </div>
  28.         <div class="user-card__stat">
  29.             <span class="user-card__joined-text w-100">
  30.                 {% if numberOfProjects is not null %}
  31.                     {% trans with {'%count%': numberOfProjects} %}
  32.                         labels.compound.aqarmap_projects
  33.                     {% endtrans %}
  34.                 {% endif %}
  35.             </span>
  36.         </div>
  37.     </div>
  38. </div>