8a4aa4efdd
This removes the need for `switch (obj)` in the template which is not allowed in strict mode. Additionally using a named variable speeds up rendering.
13 lines
530 B
HTML
13 lines
530 B
HTML
{[ if (o.allow_chat_pending_contacts) { ]}
|
|
<a class="open-chat"href="#">
|
|
{[ } ]}
|
|
<span class="req-contact-name" title="Name: {{{o.fullname}}}
|
|
JID: {{{o.jid}}}">{{{o.fullname}}}</span>
|
|
{[ if (o.allow_chat_pending_contacts) { ]}
|
|
</a>
|
|
{[ } ]}
|
|
<span class="request-actions">
|
|
<a class="accept-xmpp-request icon-checkmark" aria-label="{{{o.desc_accept}}}" title="{{{o.desc_accept}}}" href="#"></a>
|
|
<a class="decline-xmpp-request icon-close" aria-label="{{{o.desc_decline}}}" title="{{{o.desc_decline}}}" href="#"></a>
|
|
</span>
|