{% if showMore is defined and showMore is not empty %}
    <a href="{{ path('mautic_email_index', {'search' : searchString }) }}" data-toggle="ajax">
        <span>{{ 'mautic.core.search.more'|trans ({ '%count%' : remaining }) }}</span>
    </a>
{% else %}
    <a href="{{ path('mautic_email_action', {'objectAction' : 'view', 'objectId' : email.id}) }}" data-toggle="ajax">
        <span class="fw-sb">{{ email.getName() }}</span>
        <span class="ml-4 mr-sm">#{{ email.getId() }}</span>
        {{- include('@MauticCore/Helper/publishstatus_badge.html.twig', {
            'entity': email,
            'status': email.getPublishUp() is not null ? 'sending' : 'available',
            'simplified': 'true'
        }) -}}
        <span class="pull-right" data-toggle="tooltip" title="{{ 'mautic.email.readcount'|trans }}" data-placement="left">
            <i class="ri-mail-open-line"></i>
            {{ email.readCount }}
        </span>
    </a>
{% endif %}
