xmpp.chapril.org-conversejs/src/templates/occupant.html
JC Brand 441f7a2a15 Show the chatroom occupants JID in the tooltip
if you're allowed to see it.
2017-02-19 01:08:08 +00:00

14 lines
560 B
HTML

<li class="{{{ role }}} occupant" id="{{{ id }}}"
{[ if (role === "moderator") { ]}
title="{{{ jid }}} {{{ desc_moderator }}} {{{ hint_occupant }}}"
{[ } ]}
{[ if (role === "occupant") { ]}
title="{{{ jid }}} {{{ desc_occupant }}} {{{ hint_occupant }}}"
{[ } ]}
{[ if (role === "visitor") { ]}
title="{{{ jid }}} {{{ desc_visitor }}} {{{ hint_occupant }}}"
{[ } ]}
{[ if (!_.includes(["visitor", "occupant", "moderator"], role)) { ]}
title="{{{ jid }}} {{{ hint_occupant }}}"
{[ } ]}>{{{nick}}}</li>