{% apply spaceless %}
{% set name = typeKey | trans %}
{% if factory.getLogoWeb %}
{% set name = name | replace({'%factory%': ''}) %}
{% else %}
{% set name = name | replace({'%factory%': factory.name}) %}
{% endif %}
{{ name | raw }}
{% if factory.getLogoWeb %}
<img src="{{ factory.getLogoWeb }}" alt="{{ factory.name }}" style="height: 24px; vertical-align: baseline; margin: 10px 10px 0;" />
{% endif %}
{% if factory.getLogoUrl %}
<a href="{{ factory.getLogoUrl }}" target="_blank" class="link-url" > {{ factory.getLogoUrl }} </a>
{% endif %}
{% if is_granted('ROLE_ADMIN') and editLink is defined and editLink != null %}
<sup>
<span class="link-edit">
<a href="{{ editLink }}" target="_blank" rel="noopener">edit ADM</a>
{% if biLink is defined and biLink != null %}
<span> / </span>
<a href="{{ biLink }}" target="_blank" rel="noopener">edit BI</a>
{% endif %}
</span>
</sup>
{% endif %}
{% set src = import.pathSoundGenerator('factory-sound-site', factory) %}
{% if src | length > 0 %}
<a href="#"
data-src="{{ src }}"
class="js-audio-btn-play material-icons volume-high help-tooltip tooltip-autoclose"
title="{{ 'collection_sound_name_factories' | trans }}"></a>
{% endif %}
{% if factory.country != null %}
<a class="flag flag-{{ factory.country.code | lower }} help-tooltip"
href="{{ path('app_catalog', {'key': factory.country.slug}) }}"
title="{{ factory.country.name | replace({'"': '\''}) | raw }}"
></a>
{% endif %}
{% endapply %}