<div class="card card--xs card--row sc__row sc__row--actions">
  <a class="card__layout sc__card-layout js-username-hover flex flex--verticalCenter" data-id="{{user.id}}" data-login="{{user.login}}">
    <figure class="card__img card__img--avatar">
      <img class="avatar" src="{{user.avatar}}" alt="{{user.displayName}}">
    </figure>
    <div class="card__body sc__row-body">
      <h3 class="card__title sc__row-title ellipsis flex__item pd-t-0">{{format-display-name user.login user.displayName}}</h3>
      {{#if (or nonStrangerString user.recommendedReason)}}
        <p class="card__info ellipsis">
          {{#if nonStrangerString}}
            {{nonStrangerString}}
          {{else if user.recommendedReason}}
            {{user.recommendedReason}}
          {{/if}}
        </p>
      {{/if}}
    </div>

    {{#if (and friendLocation shouldShowJoin)}}
      {{social-column/join-button friendLocation=friendLocation}}
    {{/if}}

    <div class="sc__actions">
      {{#if request.isPending}}
        <div class="js-request-actions">
          {{#tipsy-wrapper gravity="n"}}
            <button class="button button--hollow button--small tooltip sc__actions-close" title={{i18n 'Reject Friend Request'}} {{action 'reject' request}}>
              <figure class="icon">{{partial 'svg/sc-close-small'}}</figure>
            </button>
          {{/tipsy-wrapper}}
          {{#tipsy-wrapper gravity="n"}}
            <button class="button button--small tooltip sc__button--accept" title={{i18n 'Accept Friend Request'}} {{action 'accept' request}}>
              <figure class="icon">{{partial 'svg/sc-followcheck'}}</figure>
            </button>
          {{/tipsy-wrapper}}
        </div>
      {{else if request.isAccepted}}
        <a href="#" class="js-request-status button button--icon-only disabled tooltip" title="{{request.user.displayName}} is now your Friend">{{svg-icon path='svg/check'}}</a>
      {{else if askBlock}}
        <span class="js-request-actions warp__status">
          {{i18n 'Block this User?'}}
          {{#tipsy-wrapper gravity="n"}}<a href="#" {{action 'block'}}>{{t 'general.forms.yes'}}</a>{{/tipsy-wrapper}}
          /
          {{#tipsy-wrapper gravity="n"}}<a href="#" {{action 'resolve'}}>{{t 'general.forms.no'}}</a>{{/tipsy-wrapper}}
        </span>
      {{else if blocked}}
        <p class="js-request-status">{{i18n 'User Blocked'}}</p>
      {{else}}
        <a href="#" class="js-request-status button button--icon-only tooltip disabled" title={{i18n 'Request Declined'}}>{{svg-icon path='svg/close'}}</a>
      {{/if}}
    </div>
  </a>

</div>
