<div ##{ident}>
  <table .table>
    <tbody>
    $if null buddies
      <tr>
        <td>
          $if isNothing myjid
            Not connected to the jabber server. Check your network connection ...
          $else
            Searching...
    $else
      $forall (name, away, canpair, paired, buddyid) <- buddies
        <tr>
          <td>
            $if isself buddyid
              <span .glyphicon .glyphicon-star> #
              <span :away:.text-muted>
                your other devices
            $else
              <span .glyphicon .glyphicon-user> #
              <span :away:.text-muted>
                  #{name}
          <td>
            $if away
              <span .text-muted>
                away
            $else
              $if paired
                <span .label .label-success>
                  paired
              $else
                $if canpair
                  $if isself buddyid
                    <a .btn .btn-primary .btn-sm href="@{RunningXMPPPairSelfR}">
                      Start pairing
                  $else
                    <a .btn .btn-primary .btn-sm href="@{RunningXMPPPairFriendR buddyid}">
                      Start pairing
                $else
                  not using git-annex