<div class="js-username-hover card card--xs card--row sc__row sc__row--actions" data-login={{user.login}} data-id={{user.id}}>
  <a class="card__layout sc__card-layout">
    <figure class="card__img card__img--avatar">
      <img class="avatar" src="{{user.avatar}}">
    </figure>
    <div class="card__body sc__row-body">
      <h3 class="card__title sc__row-title ellipsis">{{format-display-name user.login user.displayName}}</h3>

      {{#if nonStrangerString}}
        <p class="card__info ellipsis">
          {{nonStrangerString}}
        </p>
      {{/if}}
      {{#if user.recommendedReason}}
        <p class="card__info ellipsis">
          {{user.recommendedReason}}
        </p>
      {{/if}}
    </div>

    <span class="js-friend-request-status sc__actions">
      {{#if (or user.isFriend user.didRequest user.isRequestedBy)}}
        {{!-- show nothing --}}
      {{else if requestPending}}
        {{#tipsy-wrapper gravity="n"}}<a href="#" class="warp__action warp__action--secondary disabled tooltip" title={{i18n "Friend Request Sent"}}>{{partial 'svg/check'}}</a>{{/tipsy-wrapper}}
      {{else if isError}}
        {{concat (i18n 'Something went wrong') '...'}}
      {{else}}
        {{#tipsy-wrapper gravity="n"}}
          <button class="button button--small button--hollow sc__actions-close" title={{i18n "Remove Recommendation"}} {{action 'removeRecommendation' user}}>
            <figure class="icon">{{partial 'svg/sc-close-small'}}</figure>
          </button>
        {{/tipsy-wrapper}}
        {{#tipsy-wrapper gravity="n"}}
          <button class="button button--small sc__button--accept" title={{i18n "Add Friend"}} {{action 'addFriend' user}}>
            <figure class="icon">{{partial 'svg/sc-add-friend'}}</figure>
          </button>
        {{/tipsy-wrapper}}
      {{/if}}
    </span>
  </a>
</div>
