Thread

<div class="media alert ">
    <h4 class="media-heading">
        <a href=""></a>
        ( unread)
    </h4>
    <p>

    </p>
    <p>
        <small><strong>Creator:</strong> </small>
    </p>
    <p>
        <small><strong>Participants:</strong> full_name</small>
    </p>
</div>
{% set class = thread.isUnread(user.id()) ? 'alert-info' : '' %}

<div class="media alert {{ class }}">
    <h4 class="media-heading">
        <a href="{{ route('messages.show.' ~ app.getLocale(), thread.id) }}">{{ thread.subject }}</a>
        ({{ thread.userUnreadMessagesCount(user.id()) }} unread)</h4>
    <p>
        {{ thread.latestMessage.body }}
    </p>
    <p>
        <small><strong>Creator:</strong> {{ thread.creator().full_name }}</small>
    </p>
    <p>
        <small><strong>Participants:</strong> {{ thread.participantsString(user.id(), ['full_name']) }}</small>
    </p>
</div>
/* No context defined. */

No notes defined.