<div class="card card--xs card--row sc__row {{if (or thread.isMuted unreadCount) 'sc__row--indicator'}} {{if conversation 'sc__row--whisper'}} sc__row--hover-actions js-social-column-list-item js-username-hover {{if (eq conversations.activeWindowLogin login) 'sc__row--selected'}} {{if unreadCount 'sc__row--unread'}}" {{action openConversation login}} data-id="{{userId}}" data-login="{{userLogin}}">
  <a class="card__layout sc__card-layout">

    <figure class="card__img card__img--avatar">
      <img class="avatar" src="{{avatarUrl}}">
    </figure>

    {{social-column/friend-online-status userId=userId}}

    <div class="card__body sc__row-body">

      <h3 class="card__title sc__row-title ellipsis">{{format-display-name login displayName}}</h3>

      {{#if friend.isFriend}}
        <p class="card__info ellipsis">{{statusString}}</p>
      {{/if}}

      {{#if conversation}}
        <p class="card__info ellipsis">{{thread.mostRecentMessage.body}}</p>
      {{/if}}
    </div>

    {{#if (and conversation thread.isMuted)}}
      <span class="sc__indicator sc__actions">
        {{svg-icon path='svg/conversations/mute'}}
      </span>
    {{/if}}

    {{#if unreadCount}}
      <span class="js-thread-unread-count pill pill--red sc__indicator">
        {{unreadCount}}
      </span>
    {{/if}}

    {{#if friendLocation}}
      {{social-column/join-button friendLocation=friendLocation channel=channel}}
    {{/if}}

    {{#if conversation}}
      <a class='button button--small button--hollow sc__actions-close sc__button-hover' title={{i18n 'Hide'}} alt={{i18n 'Hide'}} {{action 'archive' bubbles=false}}>
        <figure class="icon">{{partial 'svg/sc-close-small'}}</figure>
      </a>
    {{/if}}

  </a>
</div>
