git-annex/templates/configurators/xmpp/buddylist.hamlet
2014-04-21 19:45:22 +02:00

40 lines
1.2 KiB
Text

<div .col-sm-9 ##{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> #
<span :away:.text-muted>
your other devices
$else
<span .glyphicon .glyphicon-user></span> #
<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