1 this["templates"] = this["templates"] || {};
3 this["templates"]["action"] = function(obj) {
5 var __t, __p = '', __e = _.escape;
7 __p += '<div class="chat-message ' +
8 ((__t = (extra_classes)) == null ? '' : __t) +
10 ((__t = (isodate)) == null ? '' : __t) +
11 '">\n <span class="chat-msg-author chat-msg-' +
12 ((__t = (sender)) == null ? '' : __t) +
14 ((__t = (time)) == null ? '' : __t) +
16 ((__t = (username)) == null ? '' : __t) +
17 ' </span>\n <span class="chat-msg-content">' +
18 ((__t = (message)) == null ? '' : __t) +
25 this["templates"]["add_contact_dropdown"] = function(obj) {
27 var __t, __p = '', __e = _.escape;
29 __p += '<dl class="add-converse-contact dropdown">\n <dt id="xmpp-contact-search" class="fancy-dropdown">\n <a class="toggle-xmpp-contact-form icon-plus" href="#" title="' +
30 ((__t = (label_click_to_chat)) == null ? '' : __t) +
32 ((__t = (label_add_contact)) == null ? '' : __t) +
33 '</a>\n </dt>\n <dd class="search-xmpp" style="display:none"><ul></ul></dd>\n</dl>\n';
39 this["templates"]["add_contact_form"] = function(obj) {
41 var __t, __p = '', __e = _.escape;
43 __p += '<li>\n <form class="pure-form add-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
44 ((__t = (label_contact_username)) == null ? '' : __t) +
45 '"/>\n <button class="pure-button button-primary" type="submit">' +
46 ((__t = (label_add)) == null ? '' : __t) +
47 '</button>\n </form>\n</li>\n';
53 this["templates"]["change_status_message"] = function(obj) {
55 var __t, __p = '', __e = _.escape;
57 __p += '<form id="set-custom-xmpp-status" class="pure-form">\n<fieldset>\n <span class="input-button-group">\n <input type="text" class="custom-xmpp-status" ' +
58 ((__t = (status_message)) == null ? '' : __t) +
60 ((__t = (label_custom_status)) == null ? '' : __t) +
61 '"/>\n <input type="submit" class="pure-button button-primary" value="' +
62 ((__t = (label_save)) == null ? '' : __t) +
63 '"/>\n </span>\n</fieldset>\n</form>\n';
69 this["templates"]["chat_status"] = function(obj) {
71 var __t, __p = '', __e = _.escape;
73 __p += '<div class="xmpp-status">\n <a class="choose-xmpp-status ' +
74 ((__t = (chat_status)) == null ? '' : __t) +
76 ((__t = (chat_status)) == null ? '' : __t) +
78 ((__t = (status_message)) == null ? '' : __t) +
79 '" href="#" title="' +
80 ((__t = (desc_change_status)) == null ? '' : __t) +
82 ((__t = (status_message)) == null ? '' : __t) +
83 '\n </a>\n <a class="change-xmpp-status-message icon-pencil" href="#" title="' +
84 ((__t = (desc_custom_status)) == null ? '' : __t) +
91 this["templates"]["chatarea"] = function(obj) {
93 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
94 function print() { __p += __j.call(arguments, '') }
96 __p += '<div class="chat-area">\n <div class="chat-content"></div>\n <form class="sendXMPPMessage" action="" method="post">\n ';
98 __p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
100 __p += '\n <textarea type="text" class="chat-textarea" \n placeholder="' +
101 ((__t = (label_message)) == null ? '' : __t) +
102 '"/>\n </form>\n</div>\n';
108 this["templates"]["chatbox"] = function(obj) {
110 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
111 function print() { __p += __j.call(arguments, '') }
113 __p += '<div class="flyout box-flyout">\n <div class="dragresize dragresize-top"></div>\n <div class="dragresize dragresize-topleft"></div>\n <div class="dragresize dragresize-left"></div>\n <div class="chat-head chat-head-chatbox">\n <a class="chatbox-btn close-chatbox-button icon-close" title="' +
114 ((__t = (info_close)) == null ? '' : __t) +
115 '"></a>\n <a class="chatbox-btn toggle-chatbox-button icon-minus" title="' +
116 ((__t = (info_minimize)) == null ? '' : __t) +
117 '"></a>\n <div class="chat-title">\n ';
119 __p += '\n <a href="' +
120 ((__t = (url)) == null ? '' : __t) +
121 '" target="_blank" class="user">\n ';
124 ((__t = ( fullname )) == null ? '' : __t) +
129 __p += '\n </div>\n <p class="user-custom-message"><p/>\n </div>\n <div class="chat-body">\n <div class="chat-content"></div>\n <form class="sendXMPPMessage" action="" method="post">\n ';
130 if (show_toolbar) { ;
131 __p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
133 __p += '\n <textarea\n type="text"\n class="chat-textarea"\n placeholder="' +
134 ((__t = (label_personal_message)) == null ? '' : __t) +
135 '"/>\n </form>\n </div>\n</div>\n';
141 this["templates"]["chatroom"] = function(obj) {
143 var __t, __p = '', __e = _.escape;
145 __p += '<div class="flyout box-flyout">\n <div class="dragresize dragresize-top"></div>\n <div class="dragresize dragresize-topleft"></div>\n <div class="dragresize dragresize-left"></div>\n <div class="chat-head chat-head-chatroom">\n <a class="chatbox-btn close-chatbox-button icon-close"></a>\n <a class="chatbox-btn toggle-chatbox-button icon-minus"></a>\n <a class="chatbox-btn configure-chatroom-button icon-wrench" style="display:none"></a>\n <div class="chat-title"> ' +
146 ((__t = ( _.escape(name) )) == null ? '' : __t) +
147 ' </div>\n <p class="chatroom-topic"><p/>\n </div>\n <div class="chat-body chatroom-body"><span class="spinner centered"/></div>\n</div>\n';
153 this["templates"]["chatroom_form"] = function(obj) {
155 var __t, __p = '', __e = _.escape;
157 __p += '<div class="chatroom-form-container">\n <form class="pure-form pure-form-stacked converse-form chatroom-form">\n <fieldset>\n <span class="spinner centered"/>\n </fieldset>\n </form>\n</div>\n';
163 this["templates"]["chatroom_password_form"] = function(obj) {
165 var __t, __p = '', __e = _.escape;
167 __p += '<div class="chatroom-form-container">\n <form class="pure-form converse-form chatroom-form">\n <fieldset>\n <legend>' +
168 ((__t = (heading)) == null ? '' : __t) +
169 '</legend>\n <label>' +
170 ((__t = (label_password)) == null ? '' : __t) +
171 '</label>\n <input type="password" name="password"/>\n </fieldset>\n <fieldset>\n <input class="pure-button button-primary" type="submit" value="' +
172 ((__t = (label_submit)) == null ? '' : __t) +
173 '"/>\n </fieldset>\n </form>\n</div>\n';
179 this["templates"]["chatroom_sidebar"] = function(obj) {
181 var __t, __p = '', __e = _.escape;
183 __p += '<!-- <div class="occupants"> -->\n<form class="pure-form room-invite">\n <input class="invited-contact" placeholder="' +
184 ((__t = (label_invitation)) == null ? '' : __t) +
185 '" type="text"/>\n</form>\n<p class="occupants-heading">' +
186 ((__t = (label_occupants)) == null ? '' : __t) +
187 ':</p>\n<ul class="occupant-list"></ul>\n<!-- </div> -->\n';
193 this["templates"]["chatrooms_tab"] = function(obj) {
195 var __t, __p = '', __e = _.escape;
197 __p += '<li><a class="s" href="#chatrooms">' +
198 ((__t = (label_rooms)) == null ? '' : __t) +
205 this["templates"]["chats_panel"] = function(obj) {
207 var __t, __p = '', __e = _.escape;
209 __p += '<div id="minimized-chats">\n <a id="toggle-minimized-chats" href="#"></a>\n <div class="flyout minimized-chats-flyout"></div>\n</div>\n';
215 this["templates"]["choose_status"] = function(obj) {
217 var __t, __p = '', __e = _.escape;
219 __p += '<dl id="target" class="dropdown">\n <dt id="fancy-xmpp-status-select" class="fancy-dropdown"></dt>\n <dd><ul class="xmpp-status-menu"></ul></dd>\n</dl>\n';
225 this["templates"]["contacts_panel"] = function(obj) {
227 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
228 function print() { __p += __j.call(arguments, '') }
230 __p += '<form class="pure-form set-xmpp-status" action="" method="post">\n <span id="xmpp-status-holder">\n <select id="select-xmpp-status" style="display:none">\n <option value="online">' +
231 ((__t = (label_online)) == null ? '' : __t) +
232 '</option>\n <option value="dnd">' +
233 ((__t = (label_busy)) == null ? '' : __t) +
234 '</option>\n <option value="away">' +
235 ((__t = (label_away)) == null ? '' : __t) +
236 '</option>\n <option value="offline">' +
237 ((__t = (label_offline)) == null ? '' : __t) +
239 if (allow_logout) { ;
240 __p += '\n <option value="logout">' +
241 ((__t = (label_logout)) == null ? '' : __t) +
244 __p += '\n </select>\n </span>\n</form>\n';
250 this["templates"]["contacts_tab"] = function(obj) {
252 var __t, __p = '', __e = _.escape;
254 __p += '<li><a class="s current" href="#users">' +
255 ((__t = (label_contacts)) == null ? '' : __t) +
262 this["templates"]["controlbox"] = function(obj) {
264 var __t, __p = '', __e = _.escape;
266 __p += '<div class="flyout box-flyout">\n <div class="dragresize dragresize-top"></div>\n <div class="dragresize dragresize-topleft"></div>\n <div class="dragresize dragresize-left"></div>\n <div class="chat-head controlbox-head">\n <ul id="controlbox-tabs"></ul>\n <a class="chatbox-btn close-chatbox-button icon-close"></a>\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
272 this["templates"]["controlbox_toggle"] = function(obj) {
274 var __t, __p = '', __e = _.escape;
276 __p += '<span class="conn-feedback">' +
277 ((__t = (label_toggle)) == null ? '' : __t) +
278 '</span>\n<span style="display: none" id="online-count">(0)</span>\n';
284 this["templates"]["field"] = function(obj) {
286 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
287 function print() { __p += __j.call(arguments, '') }
289 __p += '<field var="' +
290 ((__t = (name)) == null ? '' : __t) +
292 if (_.isArray(value)) { ;
294 _.each(value,function(arrayValue) { ;
296 ((__t = (arrayValue)) == null ? '' : __t) +
301 __p += '\n <value>' +
302 ((__t = (value)) == null ? '' : __t) +
311 this["templates"]["form_captcha"] = function(obj) {
313 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
314 function print() { __p += __j.call(arguments, '') }
318 __p += '\n<label>\n ' +
319 ((__t = (label)) == null ? '' : __t) +
322 __p += '\n<img src="data:' +
323 ((__t = (type)) == null ? '' : __t) +
325 ((__t = (data)) == null ? '' : __t) +
326 '">\n<input name="' +
327 ((__t = (name)) == null ? '' : __t) +
330 __p += ' class="required" ';
338 this["templates"]["form_checkbox"] = function(obj) {
340 var __t, __p = '', __e = _.escape;
343 ((__t = (label)) == null ? '' : __t) +
344 '</label>\n<input name="' +
345 ((__t = (name)) == null ? '' : __t) +
347 ((__t = (type)) == null ? '' : __t) +
349 ((__t = (checked)) == null ? '' : __t) +
356 this["templates"]["form_input"] = function(obj) {
358 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
359 function print() { __p += __j.call(arguments, '') }
363 __p += '\n<label>\n ' +
364 ((__t = (label)) == null ? '' : __t) +
367 __p += '\n<input name="' +
368 ((__t = (name)) == null ? '' : __t) +
370 ((__t = (type)) == null ? '' : __t) +
374 ((__t = (value)) == null ? '' : __t) +
379 __p += ' class="required" ';
387 this["templates"]["form_select"] = function(obj) {
389 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
390 function print() { __p += __j.call(arguments, '') }
393 ((__t = (label)) == null ? '' : __t) +
394 '</label>\n<select name="' +
395 ((__t = (name)) == null ? '' : __t) +
398 __p += ' multiple="multiple" ';
401 ((__t = (options)) == null ? '' : __t) +
408 this["templates"]["form_textarea"] = function(obj) {
410 var __t, __p = '', __e = _.escape;
412 __p += '<label class="label-ta">' +
413 ((__t = (label)) == null ? '' : __t) +
414 '</label>\n<textarea name="' +
415 ((__t = (name)) == null ? '' : __t) +
417 ((__t = (value)) == null ? '' : __t) +
424 this["templates"]["form_username"] = function(obj) {
426 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
427 function print() { __p += __j.call(arguments, '') }
431 __p += '\n<label>\n ' +
432 ((__t = (label)) == null ? '' : __t) +
435 __p += '\n<div class="input-group">\n <input name="' +
436 ((__t = (name)) == null ? '' : __t) +
438 ((__t = (type)) == null ? '' : __t) +
442 ((__t = (value)) == null ? '' : __t) +
447 __p += ' class="required" ';
449 __p += ' />\n <span title="' +
450 ((__t = (domain)) == null ? '' : __t) +
452 ((__t = (domain)) == null ? '' : __t) +
459 this["templates"]["group_header"] = function(obj) {
461 var __t, __p = '', __e = _.escape;
463 __p += '<a href="#" class="group-toggle icon-' +
464 ((__t = (toggle_state)) == null ? '' : __t) +
466 ((__t = (desc_group_toggle)) == null ? '' : __t) +
468 ((__t = (label_group)) == null ? '' : __t) +
475 this["templates"]["info"] = function(obj) {
477 var __t, __p = '', __e = _.escape;
479 __p += '<div class="chat-info">' +
480 ((__t = (message)) == null ? '' : __t) +
487 this["templates"]["login_panel"] = function(obj) {
489 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
490 function print() { __p += __j.call(arguments, '') }
492 __p += '<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">\n ';
494 __p += '\n <span class="spinner login-submit"/>\n ';
499 if (authentication == LOGIN) { ;
500 __p += '\n <label>' +
501 ((__t = (label_username)) == null ? '' : __t) +
502 '</label>\n <input type="text" name="jid" placeholder="' +
503 ((__t = (placeholder_username)) == null ? '' : __t) +
505 ((__t = (label_password)) == null ? '' : __t) +
506 '</label>\n <input type="password" name="password" placeholder="' +
507 ((__t = (placeholder_password)) == null ? '' : __t) +
508 '">\n <input class="pure-button button-primary" type="submit" value="' +
509 ((__t = (label_login)) == null ? '' : __t) +
510 '">\n <span class="conn-feedback"></span>\n ';
513 if (authentication == ANONYMOUS) { ;
514 __p += '\n <input type="pure-button button-primary" class="submit login-anon" value="' +
515 ((__t = (label_anon_login)) == null ? '' : __t) +
519 if (authentication == PREBIND) { ;
520 __p += '\n <p>Disconnected.</p>\n ';
524 __p += '\n</form>\n';
530 this["templates"]["login_tab"] = function(obj) {
532 var __t, __p = '', __e = _.escape;
534 __p += '<li><a class="current" href="#login-dialog">' +
535 ((__t = (label_sign_in)) == null ? '' : __t) +
542 this["templates"]["message"] = function(obj) {
544 var __t, __p = '', __e = _.escape;
546 __p += '<div class="chat-message ' +
547 ((__t = (extra_classes)) == null ? '' : __t) +
549 ((__t = (isodate)) == null ? '' : __t) +
551 ((__t = (msgid)) == null ? '' : __t) +
552 '">\n <span class="chat-msg-author chat-msg-' +
553 ((__t = (sender)) == null ? '' : __t) +
555 ((__t = (time)) == null ? '' : __t) +
557 ((__t = (username)) == null ? '' : __t) +
558 ': </span>\n <span class="chat-msg-content">' +
559 ((__t = (message)) == null ? '' : __t) +
566 this["templates"]["new_day"] = function(obj) {
568 var __t, __p = '', __e = _.escape;
570 __p += '<time class="chat-info chat-date" data-isodate="' +
571 ((__t = (isodate)) == null ? '' : __t) +
573 ((__t = (datestring)) == null ? '' : __t) +
580 this["templates"]["occupant"] = function(obj) {
582 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
583 function print() { __p += __j.call(arguments, '') }
585 __p += '<li class="' +
586 ((__t = (role)) == null ? '' : __t) +
588 if (role === "moderator") { ;
589 __p += '\n title="' +
590 ((__t = (desc_moderator)) == null ? '' : __t) +
594 if (role === "occupant") { ;
595 __p += '\n title="' +
596 ((__t = (desc_occupant)) == null ? '' : __t) +
600 if (role === "visitor") { ;
601 __p += '\n title="' +
602 ((__t = (desc_visitor)) == null ? '' : __t) +
606 ((__t = (nick)) == null ? '' : __t) +
613 this["templates"]["pending_contact"] = function(obj) {
615 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
616 function print() { __p += __j.call(arguments, '') }
619 if (allow_chat_pending_contacts) { ;
620 __p += '\n<a class="open-chat"href="#">\n';
622 __p += '\n<span class="pending-contact-name" title="Name: ' +
623 ((__t = (fullname)) == null ? '' : __t) +
625 ((__t = (jid)) == null ? '' : __t) +
627 ((__t = (fullname)) == null ? '' : __t) +
629 if (allow_chat_pending_contacts) { ;
632 __p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
633 ((__t = (desc_remove)) == null ? '' : __t) +
640 this["templates"]["pending_contacts"] = function(obj) {
642 var __t, __p = '', __e = _.escape;
644 __p += '<dt class="roster-group" id="pending-xmpp-contacts"><a href="#" class="group-toggle icon-' +
645 ((__t = (toggle_state)) == null ? '' : __t) +
647 ((__t = (desc_group_toggle)) == null ? '' : __t) +
649 ((__t = (label_pending_contacts)) == null ? '' : __t) +
656 this["templates"]["register_panel"] = function(obj) {
658 var __t, __p = '', __e = _.escape;
660 __p += '<form id="converse-register" class="pure-form converse-form">\n <span class="reg-feedback"></span>\n <label>' +
661 ((__t = (label_domain)) == null ? '' : __t) +
662 '</label>\n <input type="text" name="domain" placeholder="' +
663 ((__t = (domain_placeholder)) == null ? '' : __t) +
664 '">\n <p class="form-help">' +
665 ((__t = (help_providers)) == null ? '' : __t) +
667 ((__t = (href_providers)) == null ? '' : __t) +
668 '" class="url" target="_blank">' +
669 ((__t = (help_providers_link)) == null ? '' : __t) +
670 '</a>.</p>\n <input class="pure-button button-primary" type="submit" value="' +
671 ((__t = (label_register)) == null ? '' : __t) +
678 this["templates"]["register_tab"] = function(obj) {
680 var __t, __p = '', __e = _.escape;
682 __p += '<li><a class="s" href="#register">' +
683 ((__t = (label_register)) == null ? '' : __t) +
690 this["templates"]["registration_form"] = function(obj) {
692 var __t, __p = '', __e = _.escape;
694 __p += '<p class="provider-title">' +
695 ((__t = (domain)) == null ? '' : __t) +
696 '</p>\n<a href=\'https://xmpp.net/result.php?domain=' +
697 ((__t = (domain)) == null ? '' : __t) +
698 '&type=client\'>\n <img class="provider-score" src=\'https://xmpp.net/badge.php?domain=' +
699 ((__t = (domain)) == null ? '' : __t) +
700 '\' alt=\'xmpp.net score\' />\n</a>\n<p class="title">' +
701 ((__t = (title)) == null ? '' : __t) +
702 '</p>\n<p class="instructions">' +
703 ((__t = (instructions)) == null ? '' : __t) +
710 this["templates"]["registration_request"] = function(obj) {
712 var __t, __p = '', __e = _.escape;
714 __p += '<span class="spinner login-submit"/>\n<p class="info">' +
715 ((__t = (info_message)) == null ? '' : __t) +
716 '</p>\n<button class="pure-button button-cancel hor_centered">' +
717 ((__t = (cancel)) == null ? '' : __t) +
724 this["templates"]["requesting_contact"] = function(obj) {
726 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
727 function print() { __p += __j.call(arguments, '') }
730 if (allow_chat_pending_contacts) { ;
731 __p += '\n<a class="open-chat"href="#">\n';
733 __p += '\n<span class="req-contact-name" title="Name: ' +
734 ((__t = (fullname)) == null ? '' : __t) +
736 ((__t = (jid)) == null ? '' : __t) +
738 ((__t = (fullname)) == null ? '' : __t) +
740 if (allow_chat_pending_contacts) { ;
743 __p += '\n<span class="request-actions">\n <a class="accept-xmpp-request icon-checkmark" title="' +
744 ((__t = (desc_accept)) == null ? '' : __t) +
745 '" href="#"></a>\n <a class="decline-xmpp-request icon-close" title="' +
746 ((__t = (desc_decline)) == null ? '' : __t) +
747 '" href="#"></a>\n</span>\n';
753 this["templates"]["requesting_contacts"] = function(obj) {
755 var __t, __p = '', __e = _.escape;
757 __p += '<dt class="roster-group" id="xmpp-contact-requests"><a href="#" class="group-toggle icon-' +
758 ((__t = (toggle_state)) == null ? '' : __t) +
760 ((__t = (desc_group_toggle)) == null ? '' : __t) +
762 ((__t = (label_contact_requests)) == null ? '' : __t) +
769 this["templates"]["room_description"] = function(obj) {
771 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
772 function print() { __p += __j.call(arguments, '') }
774 __p += '<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
775 ((__t = (label_desc)) == null ? '' : __t) +
777 ((__t = (desc)) == null ? '' : __t) +
778 '</p>\n<p class="room-info"><strong>' +
779 ((__t = (label_occ)) == null ? '' : __t) +
781 ((__t = (occ)) == null ? '' : __t) +
782 '</p>\n<p class="room-info"><strong>' +
783 ((__t = (label_features)) == null ? '' : __t) +
784 '</strong>\n <ul>\n ';
785 if (passwordprotected) { ;
786 __p += '\n <li class="room-info locked">' +
787 ((__t = (label_requires_auth)) == null ? '' : __t) +
792 __p += '\n <li class="room-info">' +
793 ((__t = (label_hidden)) == null ? '' : __t) +
798 __p += '\n <li class="room-info">' +
799 ((__t = (label_requires_invite)) == null ? '' : __t) +
804 __p += '\n <li class="room-info">' +
805 ((__t = (label_moderated)) == null ? '' : __t) +
809 if (nonanonymous) { ;
810 __p += '\n <li class="room-info">' +
811 ((__t = (label_non_anon)) == null ? '' : __t) +
816 __p += '\n <li class="room-info">' +
817 ((__t = (label_open_room)) == null ? '' : __t) +
822 __p += '\n <li class="room-info">' +
823 ((__t = (label_permanent_room)) == null ? '' : __t) +
828 __p += '\n <li class="room-info">' +
829 ((__t = (label_public)) == null ? '' : __t) +
833 if (semianonymous) { ;
834 __p += '\n <li class="room-info">' +
835 ((__t = (label_semi_anon)) == null ? '' : __t) +
840 __p += '\n <li class="room-info">' +
841 ((__t = (label_temp_room)) == null ? '' : __t) +
846 __p += '\n <li class="room-info">' +
847 ((__t = (label_unmoderated)) == null ? '' : __t) +
850 __p += '\n </ul>\n</p>\n</div>\n';
856 this["templates"]["room_item"] = function(obj) {
858 var __t, __p = '', __e = _.escape;
860 __p += '<dd class="available-chatroom">\n<a class="open-room" data-room-jid="' +
861 ((__t = (jid)) == null ? '' : __t) +
863 ((__t = (open_title)) == null ? '' : __t) +
865 ((__t = (_.escape(name))) == null ? '' : __t) +
866 '</a>\n<a class="room-info icon-room-info" data-room-jid="' +
867 ((__t = (jid)) == null ? '' : __t) +
869 ((__t = (info_title)) == null ? '' : __t) +
870 '" href="#"> </a>\n</dd>\n';
876 this["templates"]["room_panel"] = function(obj) {
878 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
879 function print() { __p += __j.call(arguments, '') }
881 __p += '<form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">\n <fieldset>\n <label>' +
882 ((__t = (label_room_name)) == null ? '' : __t) +
883 '</label>\n <input type="text" name="chatroom" class="new-chatroom-name" placeholder="' +
884 ((__t = (label_room_name)) == null ? '' : __t) +
886 ((__t = (label_nickname)) == null ? '' : __t) +
887 '</label> <input type="text" name="nick" class="new-chatroom-nick" placeholder="' +
888 ((__t = (label_nickname)) == null ? '' : __t) +
889 '"/>\n <input type="submit" class="pure-button button-primary" name="join" value="' +
890 ((__t = (label_join)) == null ? '' : __t) +
891 '"/>\n </fieldset>\n <fieldset>\n ';
892 if (server_input_type != 'hidden') { ;
894 ((__t = (server_label_global_attr)) == null ? '' : __t) +
896 ((__t = (label_server)) == null ? '' : __t) +
899 __p += '\n <input type="' +
900 ((__t = (server_input_type)) == null ? '' : __t) +
901 '" name="server" class="new-chatroom-server" placeholder="' +
902 ((__t = (label_server)) == null ? '' : __t) +
903 '"/>\n <input type="button" class="pure-button button-secondary" name="show" id="show-rooms" value="' +
904 ((__t = (label_show_rooms)) == null ? '' : __t) +
905 '"/>\n </fieldset>\n</form>\n<dl id="available-chatrooms"></dl>\n';
911 this["templates"]["roster"] = function(obj) {
913 var __t, __p = '', __e = _.escape;
915 __p += '<form class="pure-form roster-filter-group input-button-group">\n <input style="display: none;" class="roster-filter" placeholder="' +
916 ((__t = (placeholder)) == null ? '' : __t) +
917 '">\n <select style="display: none;" class="filter-type">\n <option value="contacts">' +
918 ((__t = (label_contacts)) == null ? '' : __t) +
919 '</option>\n <option value="groups">' +
920 ((__t = (label_groups)) == null ? '' : __t) +
921 '</option>\n </select>\n</form>\n';
927 this["templates"]["roster_item"] = function(obj) {
929 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
930 function print() { __p += __j.call(arguments, '') }
932 __p += '<a class="open-chat" title="' +
933 ((__t = (title_fullname)) == null ? '' : __t) +
935 ((__t = (fullname)) == null ? '' : __t) +
937 ((__t = (jid)) == null ? '' : __t) +
939 ((__t = (desc_chat)) == null ? '' : __t) +
940 '" href="#"><span class="icon-' +
941 ((__t = (chat_status)) == null ? '' : __t) +
943 ((__t = (desc_status)) == null ? '' : __t) +
945 ((__t = (fullname)) == null ? '' : __t) +
947 if (allow_contact_removal) { ;
948 __p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
949 ((__t = (desc_remove)) == null ? '' : __t) +
958 this["templates"]["search_contact"] = function(obj) {
960 var __t, __p = '', __e = _.escape;
962 __p += '<li>\n <form class="search-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
963 ((__t = (label_contact_name)) == null ? '' : __t) +
964 '"/>\n <button type="submit">' +
965 ((__t = (label_search)) == null ? '' : __t) +
966 '</button>\n </form>\n</li>\n';
972 this["templates"]["select_option"] = function(obj) {
974 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
975 function print() { __p += __j.call(arguments, '') }
977 __p += '<option value="' +
978 ((__t = (value)) == null ? '' : __t) +
981 __p += ' selected="selected" ';
984 ((__t = (label)) == null ? '' : __t) +
991 this["templates"]["status_option"] = function(obj) {
993 var __t, __p = '', __e = _.escape;
995 __p += '<li>\n <a href="#" class="' +
996 ((__t = ( value )) == null ? '' : __t) +
998 ((__t = ( value )) == null ? '' : __t) +
999 '">\n <span class="icon-' +
1000 ((__t = ( value )) == null ? '' : __t) +
1002 ((__t = ( text )) == null ? '' : __t) +
1009 this["templates"]["toggle_chats"] = function(obj) {
1011 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1012 function print() { __p += __j.call(arguments, '') }
1015 ((__t = (Minimized)) == null ? '' : __t) +
1016 ' <span id="minimized-count">(' +
1017 ((__t = (num_minimized)) == null ? '' : __t) +
1018 ')</span>\n<span class="unread-message-count"\n ';
1019 if (!num_unread) { ;
1020 __p += ' style="display: none" ';
1022 __p += '\n href="#">' +
1023 ((__t = (num_unread)) == null ? '' : __t) +
1030 this["templates"]["toolbar"] = function(obj) {
1032 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1033 function print() { __p += __j.call(arguments, '') }
1036 if (show_emoticons) { ;
1037 __p += '\n <li class="toggle-smiley icon-happy" title="' +
1038 ((__t = (label_insert_smiley)) == null ? '' : __t) +
1039 '">\n <ul>\n <li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>\n <li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>\n <li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>\n <li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>\n <li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>\n <li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>\n <li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>\n <li><a class="icon-wondering" href="#" data-emoticon=":\\"></a></li>\n <li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>\n <li><a class="icon-sad" href="#" data-emoticon=":("></a></li>\n <li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>\n <li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>\n <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>\n </ul>\n </li>\n';
1042 if (show_call_button) { ;
1043 __p += '\n<li class="toggle-call"><a class="icon-phone" title="' +
1044 ((__t = (label_start_call)) == null ? '' : __t) +
1048 if (show_occupants_toggle) { ;
1049 __p += '\n<li class="toggle-occupants"><a class="icon-hide-users" title="' +
1050 ((__t = (label_hide_occupants)) == null ? '' : __t) +
1054 if (show_clear_button) { ;
1055 __p += '\n<li class="toggle-clear"><a class="icon-remove" title="' +
1056 ((__t = (label_clear)) == null ? '' : __t) +
1061 __p += '\n <li class="toggle-otr ' +
1062 ((__t = (otr_status_class)) == null ? '' : __t) +
1064 ((__t = (otr_tooltip)) == null ? '' : __t) +
1065 '">\n <span class="chat-toolbar-text">' +
1066 ((__t = (otr_translated_status)) == null ? '' : __t) +
1068 if (otr_status == UNENCRYPTED) { ;
1069 __p += '\n <span class="icon-unlocked"></span>\n ';
1072 if (otr_status == UNVERIFIED) { ;
1073 __p += '\n <span class="icon-lock"></span>\n ';
1076 if (otr_status == VERIFIED) { ;
1077 __p += '\n <span class="icon-lock"></span>\n ';
1080 if (otr_status == FINISHED) { ;
1081 __p += '\n <span class="icon-unlocked"></span>\n ';
1083 __p += '\n <ul>\n ';
1084 if (otr_status == UNENCRYPTED) { ;
1085 __p += '\n <li><a class="start-otr" href="#">' +
1086 ((__t = (label_start_encrypted_conversation)) == null ? '' : __t) +
1090 if (otr_status != UNENCRYPTED) { ;
1091 __p += '\n <li><a class="start-otr" href="#">' +
1092 ((__t = (label_refresh_encrypted_conversation)) == null ? '' : __t) +
1093 '</a></li>\n <li><a class="end-otr" href="#">' +
1094 ((__t = (label_end_encrypted_conversation)) == null ? '' : __t) +
1095 '</a></li>\n <li><a class="auth-otr" data-scheme="smp" href="#">' +
1096 ((__t = (label_verify_with_smp)) == null ? '' : __t) +
1100 if (otr_status == UNVERIFIED) { ;
1101 __p += '\n <li><a class="auth-otr" data-scheme="fingerprint" href="#">' +
1102 ((__t = (label_verify_with_fingerprints)) == null ? '' : __t) +
1105 __p += '\n <li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank">' +
1106 ((__t = (label_whats_this)) == null ? '' : __t) +
1107 '</a></li>\n </ul>\n </li>\n';
1115 this["templates"]["trimmed_chat"] = function(obj) {
1117 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1118 function print() { __p += __j.call(arguments, '') }
1120 __p += '<a class="chatbox-btn close-chatbox-button icon-close"></a>\n<a class="chat-head-message-count" \n ';
1121 if (!num_unread) { ;
1122 __p += ' style="display: none" ';
1124 __p += '\n href="#">' +
1125 ((__t = (num_unread)) == null ? '' : __t) +
1126 '</a>\n<a href="#" class="restore-chat" title="' +
1127 ((__t = (tooltip)) == null ? '' : __t) +
1129 ((__t = ( title )) == null ? '' : __t) +
1136 this["templates"]["vcard"] = function(obj) {
1138 var __t, __p = '', __e = _.escape;
1140 __p += '<form class="pure-form converse-form vcard-info">\n <fieldset>\n <legend>The VCard info gets rendered here</legend>\n <label>Full name:</label>\n ' +
1141 ((__t = (fullname)) == null ? '' : __t) +
1142 '\n <label>URL:</label>\n ' +
1143 ((__t = (url)) == null ? '' : __t) +
1144 '\n </fieldset>\n <fieldset>\n <input type="button" class="pure-button button-cancel" value="' +
1145 ((__t = (label_return)) == null ? '' : __t) +
1146 '"/>\n </fieldset>\n</form>\n';