xmpp.chapril.org-conversejs/src/templates/contacts_panel.html
JC Brand 8a4aa4efdd Use a named variable for _.template
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.
2017-11-05 18:59:29 +01:00

14 lines
558 B
HTML

<form class="pure-form set-xmpp-status" id="set-xmpp-status" action="" method="post">
<select id="select-xmpp-status">
<option value="online">{{{o.label_online}}}</option>
<option value="dnd">{{{o.label_busy}}}</option>
<option value="away">{{{o.label_away}}}</option>
{[ if (o.include_offline_state) { ]}
<option value="offline">{{{o.label_offline}}}</option>
{[ } ]}
{[ if (o.allow_logout) { ]}
<option value="logout">{{{o.label_logout}}}</option>
{[ } ]}
</select>
</form>