2018-05-09 12:28:34 +02:00
|
|
|
<li class="occupant" id="{{{ o.id }}}"
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.role === "moderator") { ]}
|
|
|
|
title="{{{ o.jid }}} {{{ o.desc_moderator }}} {{{ o.hint_occupant }}}"
|
2014-01-19 05:21:49 +01:00
|
|
|
{[ } ]}
|
2018-05-09 12:28:34 +02:00
|
|
|
{[ if (o.role === "participant") { ]}
|
|
|
|
title="{{{ o.jid }}} {{{ o.desc_participant }}} {{{ o.hint_occupant }}}"
|
2014-01-19 05:21:49 +01:00
|
|
|
{[ } ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
{[ if (o.role === "visitor") { ]}
|
|
|
|
title="{{{ o.jid }}} {{{ o.desc_visitor }}} {{{ o.hint_occupant }}}"
|
2017-02-19 01:57:06 +01:00
|
|
|
{[ } ]}
|
2018-06-02 17:18:42 +02:00
|
|
|
{[ if (!o._.includes(["visitor", "participant", "moderator"], o.role)) { ]}
|
2017-11-05 18:47:30 +01:00
|
|
|
title="{{{ o.jid }}} {{{ o.hint_occupant }}}"
|
2018-05-09 12:28:34 +02:00
|
|
|
{[ } ]}>
|
|
|
|
<div class="row no-gutters">
|
|
|
|
<div class="col-auto">
|
|
|
|
<div class="occupant-status occupant-{{{o.show}}} circle" title="{{{o.hint_show}}}"></div>
|
|
|
|
</div>
|
2018-10-28 22:58:08 +01:00
|
|
|
<div class="col occupant-nick-badge">
|
2018-05-09 12:57:50 +02:00
|
|
|
<span class="occupant-nick">{{{o.nick || o.jid}}}</span>
|
2018-10-28 22:58:08 +01:00
|
|
|
<span class="occupant-badges">
|
|
|
|
{[ if (o.affiliation === "owner") { ]}
|
2018-12-10 14:49:54 +01:00
|
|
|
<span class="badge badge-groupchat">{{{o.label_owner}}}</span>
|
2018-10-28 22:58:08 +01:00
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.affiliation === "admin") { ]}
|
|
|
|
<span class="badge badge-info">{{{o.label_admin}}}</span>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.affiliation === "member") { ]}
|
|
|
|
<span class="badge badge-info">{{{o.label_member}}}</span>
|
|
|
|
{[ } ]}
|
2018-05-09 12:28:34 +02:00
|
|
|
|
2018-10-28 22:58:08 +01:00
|
|
|
{[ if (o.role === "moderator") { ]}
|
|
|
|
<span class="badge badge-info">{{{o.label_moderator}}}</span>
|
|
|
|
{[ } ]}
|
|
|
|
{[ if (o.role === "visitor") { ]}
|
|
|
|
<span class="badge badge-secondary">{{{o.label_visitor}}}</span>
|
|
|
|
{[ } ]}
|
|
|
|
</span>
|
2018-05-09 12:28:34 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|