{% if hitAuthor is defined and hitAuthor is not empty %}
{% if visibleAnnuaire is defined and visibleAnnuaire is not empty %}
{% if visibleAnnuaire == true %}
<a href="/user/{{ hit.user_id }}" class="nodeco diblock">
{% else %}
<div class="nodeco diblock">
{% endif %}
<span class="diflex initials author cwhite jcc aic fs12" title="{{ author_name ~ " " ~ author_lastname }}">
{{ author_name|first|upper }}
{{ author_lastname|first|upper }}
</span>
{% if visibleAnnuaire == true %}
</a>
{% else %}
</div>
{% endif %}
{% endif %}
{% endif %}
{% if contributors is defined and contributors is not empty and contributors|length > 0 %}
{% for contributor in contributors %}
{% include "users/logic/isUserInAnnuaire.html.twig" %}
{% endfor %}
{% endif %}