git-annex/templates/configurators/xmpp/buddylist.hamlet

41 lines
1.2 KiB
Text
Raw Normal View History

<div ##{ident}>
2012-11-03 01:13:06 +00:00
<table .table>
<tbody>
$if null buddies
<tr>
2013-03-07 02:02:47 +00:00
<td>
$if isNothing myjid
Not connected to the jabber server. Check your network connection ...
$else
Searching...
2012-11-03 01:13:06 +00:00
$else
2012-11-10 20:35:09 +00:00
$forall (name, away, canpair, paired, buddyid) <- buddies
2012-11-03 01:13:06 +00:00
<tr>
<td>
$if isself buddyid
<span .glyphicon .glyphicon-star> #
<span :away:.text-muted>
your other devices
2012-11-03 01:13:06 +00:00
$else
<span .glyphicon .glyphicon-user> #
<span :away:.text-muted>
#{name}
2012-11-03 01:13:06 +00:00
<td>
$if away
<span .text-muted>
away
2012-11-03 01:13:06 +00:00
$else
2012-11-10 20:35:09 +00:00
$if paired
<span .label .label-success>
paired
$else
2012-11-10 20:35:09 +00:00
$if canpair
$if isself buddyid
<a .btn .btn-primary .btn-sm href="@{RunningXMPPPairSelfR}">
2013-03-16 18:50:30 +00:00
Start pairing
$else
<a .btn .btn-primary .btn-sm href="@{RunningXMPPPairFriendR buddyid}">
Start pairing
2012-11-10 20:35:09 +00:00
$else
not using git-annex