<p><strong>Bonjour {{ user.firstname }} {{ user.lastname }},</strong></p>
{{ text }}

{% if ad.status == 'DECLINED' %}
    {{ ad.moderationText }}
{% endif %}

<h2>Détail de mon annonce</h2>
<div>
    <div>
        <a href="{{ path('ad_show',{'alias': ad.alias }) }}" title="{{ ad.title }}" class="item-list-media">
            {% if ad.video %}
                {% if ad.video.thumbnails.0.sizes is defined %}
                    <img width="100%" src="{{ ad.video.thumbnails.0.sizes.4.link }}"
                         alt="{{ ad.company.brandName }}"/>
                {% endif %}
            {% endif %}
        </a>
    </div>
    <div>
        <h3>
            <a href="{{ path('ad_show',{'alias': ad.alias }) }}"
               title="{{ ad.title }}">{{ ad.title }}</a>
        </h3>
        <p>
            Mots-clés :
            {% for tag in ad.publicTag %}
                <span>
            {% if loop.last %}
                {{ tag }}
            {% else %}
                {{ tag }},
            {% endif %}
        </span>
            {% endfor %}
        </p>
        {% if ad.location is iterable %}
            <p>Localité :
                <span>{{ ad.location.gmap_address.address_components.0.long_name }}</span>
            </p>
        {% endif %}
        <p>Entité :
            <a href="{{ path('company_show',{'alias': ad.company.alias }) }}">{{ ad.company.brandName }}</a>
        </p>
        <p>
            <a href="{{ path('ad_show',{'alias': ad.alias }) }}" title="{{ ad.title }}" class="btn btn-default">Voir
                l'offre d'emploi</a>
        </p>
    </div>
</div>