friendica-addons/xmpp/converse/builds/templates.js

1140 lines
34 KiB
JavaScript
Raw Normal View History

2015-10-31 18:10:57 -04:00
this["templates"] = this["templates"] || {};
this["templates"]["action"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="chat-message ' +
((__t = (extra_classes)) == null ? '' : __t) +
'" data-isodate="' +
((__t = (isodate)) == null ? '' : __t) +
'">\n <span class="chat-message-' +
((__t = (sender)) == null ? '' : __t) +
'">' +
((__t = (time)) == null ? '' : __t) +
' **' +
((__t = (username)) == null ? '' : __t) +
' </span>\n <span class="chat-message-content">' +
((__t = (message)) == null ? '' : __t) +
'</span>\n</div>\n';
}
return __p
};
this["templates"]["add_contact_dropdown"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<dl class="add-converse-contact dropdown">\n <dt id="xmpp-contact-search" class="fancy-dropdown">\n <a class="toggle-xmpp-contact-form" href="#"\n title="' +
((__t = (label_click_to_chat)) == null ? '' : __t) +
'">\n <span class="icon-plus"></span>' +
((__t = (label_add_contact)) == null ? '' : __t) +
'</a>\n </dt>\n <dd class="search-xmpp" style="display:none"><ul></ul></dd>\n</dl>\n';
}
return __p
};
this["templates"]["add_contact_form"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li>\n <form class="add-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
((__t = (label_contact_username)) == null ? '' : __t) +
'"/>\n <button type="submit">' +
((__t = (label_add)) == null ? '' : __t) +
'</button>\n </form>\n</li>\n';
}
return __p
};
this["templates"]["change_status_message"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<form id="set-custom-xmpp-status">\n <span class="input-button-group">\n <input type="text" class="custom-xmpp-status" ' +
((__t = (status_message)) == null ? '' : __t) +
'\n placeholder="' +
((__t = (label_custom_status)) == null ? '' : __t) +
'"/>\n <button type="submit">' +
((__t = (label_save)) == null ? '' : __t) +
'</button>\n </span>\n</form>\n';
}
return __p
};
this["templates"]["chat_status"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="xmpp-status">\n <a class="choose-xmpp-status ' +
((__t = (chat_status)) == null ? '' : __t) +
'"\n data-value="' +
((__t = (status_message)) == null ? '' : __t) +
'"\n href="#" title="' +
((__t = (desc_change_status)) == null ? '' : __t) +
'">\n\n <span class="icon-' +
((__t = (chat_status)) == null ? '' : __t) +
'"></span>' +
((__t = (status_message)) == null ? '' : __t) +
'\n </a>\n <a class="change-xmpp-status-message icon-pencil"\n href="#"\n title="' +
((__t = (desc_custom_status)) == null ? '' : __t) +
'"></a>\n</div>\n';
}
return __p
};
this["templates"]["chatarea"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<div class="chat-area">\n <div class="chat-content"></div>\n <form class="sendXMPPMessage" action="" method="post">\n ';
if (show_toolbar) { ;
__p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
} ;
__p += '\n <textarea type="text" class="chat-textarea" \n placeholder="' +
((__t = (label_message)) == null ? '' : __t) +
'"/>\n </form>\n</div>\n';
}
return __p
};
this["templates"]["chatbox"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<div class="box-flyout" ';
if (height) { ;
__p += ' style="height: ' +
((__t = (height)) == null ? '' : __t) +
'px" ';
} ;
__p += '>\n <div class="dragresize"></div>\n <div class="chat-head chat-head-chatbox">\n <a class="close-chatbox-button icon-close"></a>\n <a class="toggle-chatbox-button icon-minus"></a>\n <div class="chat-title">\n ';
if (url) { ;
__p += '\n <a href="' +
((__t = (url)) == null ? '' : __t) +
'" target="_blank" class="user">\n ';
} ;
__p += '\n ' +
((__t = ( fullname )) == null ? '' : __t) +
'\n ';
if (url) { ;
__p += '\n </a>\n ';
} ;
__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 ';
if (show_toolbar) { ;
__p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
} ;
__p += '\n <textarea\n type="text"\n class="chat-textarea"\n placeholder="' +
((__t = (label_personal_message)) == null ? '' : __t) +
'"/>\n </form>\n </div>\n</div>\n';
}
return __p
};
this["templates"]["chatroom"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<div class="box-flyout" ';
if (height) { ;
__p += ' style="height: ' +
((__t = (height)) == null ? '' : __t) +
'px" ';
} ;
__p += '>\n <div class="dragresize"></div>\n <div class="chat-head chat-head-chatroom">\n <a class="close-chatbox-button icon-close"></a>\n <a class="toggle-chatbox-button icon-minus"></a>\n <a class="configure-chatroom-button icon-wrench" style="display:none"></a>\n <div class="chat-title"> ' +
((__t = ( _.escape(name) )) == null ? '' : __t) +
' </div>\n <p class="chatroom-topic"><p/>\n </div>\n <div class="chat-body"><span class="spinner centered"/></div>\n</div>\n';
}
return __p
};
this["templates"]["chatroom_password_form"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="chatroom-form-container">\n <form class="chatroom-form">\n <legend>' +
((__t = (heading)) == null ? '' : __t) +
'</legend>\n <label>' +
((__t = (label_password)) == null ? '' : __t) +
'</label>\n <input type="password" name="password"/>\n <input type="submit" value="' +
((__t = (label_submit)) == null ? '' : __t) +
'"/>\n </form>\n</div>\n';
}
return __p
};
this["templates"]["chatroom_sidebar"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<!-- <div class="participants"> -->\n<form class="room-invite">\n <input class="invited-contact" placeholder="' +
((__t = (label_invitation)) == null ? '' : __t) +
'" type="text"/>\n</form>\n<label>' +
((__t = (label_occupants)) == null ? '' : __t) +
':</label>\n<ul class="participant-list"></ul>\n<!-- </div> -->\n';
}
return __p
};
this["templates"]["chatrooms_tab"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li><a class="s" href="#chatrooms">' +
((__t = (label_rooms)) == null ? '' : __t) +
'</a></li>\n';
}
return __p
};
this["templates"]["chats_panel"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div id="minimized-chats">\n <a id="toggle-minimized-chats" href="#"></a>\n <div class="minimized-chats-flyout"></div>\n</div>\n';
}
return __p
};
this["templates"]["choose_status"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__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';
}
return __p
};
this["templates"]["contacts_panel"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<form class="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">' +
((__t = (label_online)) == null ? '' : __t) +
'</option>\n <option value="dnd">' +
((__t = (label_busy)) == null ? '' : __t) +
'</option>\n <option value="away">' +
((__t = (label_away)) == null ? '' : __t) +
'</option>\n <option value="offline">' +
((__t = (label_offline)) == null ? '' : __t) +
'</option>\n ';
if (allow_logout) { ;
__p += '\n <option value="logout">' +
((__t = (label_logout)) == null ? '' : __t) +
'</option>\n ';
} ;
__p += '\n </select>\n </span>\n</form>\n';
}
return __p
};
this["templates"]["contacts_tab"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li><a class="s current" href="#users">' +
((__t = (label_contacts)) == null ? '' : __t) +
'</a></li>\n';
}
return __p
};
this["templates"]["controlbox"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<div class="box-flyout" ';
if (height) { ;
__p += ' style="height: ' +
((__t = (height)) == null ? '' : __t) +
'px" ';
} ;
__p += '>\n <div class="dragresize"></div>\n <div class="chat-head controlbox-head">\n <ul id="controlbox-tabs"></ul>\n <a class="close-chatbox-button icon-close"></a>\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
}
return __p
};
this["templates"]["controlbox_toggle"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<span class="conn-feedback">' +
((__t = (label_toggle)) == null ? '' : __t) +
'</span>\n<span style="display: none" id="online-count">(0)</span>\n';
}
return __p
};
this["templates"]["field"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<field var="' +
((__t = (name)) == null ? '' : __t) +
'">';
if (_.isArray(value)) { ;
__p += '\n ';
_.each(value,function(arrayValue) { ;
__p += '<value>' +
((__t = (arrayValue)) == null ? '' : __t) +
'</value>';
}); ;
__p += '\n';
} else { ;
__p += '\n <value>' +
((__t = (value)) == null ? '' : __t) +
'</value>\n';
} ;
__p += '</field>\n';
}
return __p
};
this["templates"]["form_captcha"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (label) { ;
__p += '\n<label>\n ' +
((__t = (label)) == null ? '' : __t) +
'\n</label>\n';
} ;
__p += '\n<img src="data:' +
((__t = (type)) == null ? '' : __t) +
';base64,' +
((__t = (data)) == null ? '' : __t) +
'">\n<input name="' +
((__t = (name)) == null ? '' : __t) +
'" type="text" ';
if (required) { ;
__p += ' class="required" ';
} ;
__p += ' >\n\n\n';
}
return __p
};
this["templates"]["form_checkbox"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<label>' +
((__t = (label)) == null ? '' : __t) +
'</label>\n<input name="' +
((__t = (name)) == null ? '' : __t) +
'" type="' +
((__t = (type)) == null ? '' : __t) +
'" ' +
((__t = (checked)) == null ? '' : __t) +
'>\n';
}
return __p
};
this["templates"]["form_input"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (label) { ;
__p += '\n<label>\n ' +
((__t = (label)) == null ? '' : __t) +
'\n</label>\n';
} ;
__p += '\n<input name="' +
((__t = (name)) == null ? '' : __t) +
'" type="' +
((__t = (type)) == null ? '' : __t) +
'" \n ';
if (value) { ;
__p += ' value="' +
((__t = (value)) == null ? '' : __t) +
'" ';
} ;
__p += '\n ';
if (required) { ;
__p += ' class="required" ';
} ;
__p += ' >\n';
}
return __p
};
this["templates"]["form_select"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<label>' +
((__t = (label)) == null ? '' : __t) +
'</label>\n<select name="' +
((__t = (name)) == null ? '' : __t) +
'" ';
if (multiple) { ;
__p += ' multiple="multiple" ';
} ;
__p += '>' +
((__t = (options)) == null ? '' : __t) +
'</select>\n';
}
return __p
};
this["templates"]["form_textarea"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<label class="label-ta">' +
((__t = (label)) == null ? '' : __t) +
'</label>\n<textarea name="' +
((__t = (name)) == null ? '' : __t) +
'">' +
((__t = (value)) == null ? '' : __t) +
'</textarea>\n';
}
return __p
};
this["templates"]["form_username"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (label) { ;
__p += '\n<label>\n ' +
((__t = (label)) == null ? '' : __t) +
'\n</label>\n';
} ;
__p += '\n<div class="input-group">\n <input name="' +
((__t = (name)) == null ? '' : __t) +
'" type="' +
((__t = (type)) == null ? '' : __t) +
'"\n ';
if (value) { ;
__p += ' value="' +
((__t = (value)) == null ? '' : __t) +
'" ';
} ;
__p += '\n ';
if (required) { ;
__p += ' class="required" ';
} ;
__p += ' />\n <span title="' +
((__t = (domain)) == null ? '' : __t) +
'">' +
((__t = (domain)) == null ? '' : __t) +
'</span>\n</div>\n';
}
return __p
};
this["templates"]["group_header"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<a href="#" class="group-toggle icon-' +
((__t = (toggle_state)) == null ? '' : __t) +
'" title="' +
((__t = (desc_group_toggle)) == null ? '' : __t) +
'">' +
((__t = (label_group)) == null ? '' : __t) +
'</a>\n';
}
return __p
};
this["templates"]["info"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="chat-info">' +
((__t = (message)) == null ? '' : __t) +
'</div>\n';
}
return __p
};
this["templates"]["login_panel"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<form id="converse-login" method="post">\n ';
if (auto_login) { ;
__p += '\n <span class="spinner login-submit"/>\n ';
} ;
__p += '\n ';
if (!auto_login) { ;
__p += '\n ';
if (authentication == LOGIN) { ;
__p += '\n <label>' +
((__t = (label_username)) == null ? '' : __t) +
'</label>\n <input name="jid" placeholder="' +
((__t = (placeholder_username)) == null ? '' : __t) +
'">\n <label>' +
((__t = (label_password)) == null ? '' : __t) +
'</label>\n <input type="password" name="password" placeholder="' +
((__t = (placeholder_password)) == null ? '' : __t) +
'">\n <input class="submit" type="submit" value="' +
((__t = (label_login)) == null ? '' : __t) +
'">\n <span class="conn-feedback"></span>\n ';
} ;
__p += '\n ';
if (authentication == ANONYMOUS) { ;
__p += '\n <input type="submit" class="submit login-anon" value="' +
((__t = (label_anon_login)) == null ? '' : __t) +
'"/>\n ';
} ;
__p += '\n ';
if (authentication == PREBIND) { ;
__p += '\n <p>Disconnected.</p>\n ';
} ;
__p += '\n ';
} ;
__p += '\n</form>\n';
}
return __p
};
this["templates"]["login_tab"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li><a class="current" href="#login-dialog">' +
((__t = (label_sign_in)) == null ? '' : __t) +
'</a></li>\n';
}
return __p
};
this["templates"]["message"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="chat-message ' +
((__t = (extra_classes)) == null ? '' : __t) +
'" data-isodate="' +
((__t = (isodate)) == null ? '' : __t) +
'" data-msgid="' +
((__t = (msgid)) == null ? '' : __t) +
'">\n <span class="chat-message-' +
((__t = (sender)) == null ? '' : __t) +
'">' +
((__t = (time)) == null ? '' : __t) +
' ' +
((__t = (username)) == null ? '' : __t) +
':&nbsp;</span>\n <span class="chat-message-content">' +
((__t = (message)) == null ? '' : __t) +
'</span>\n</div>\n';
}
return __p
};
this["templates"]["new_day"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<time class="chat-date" data-isodate="' +
((__t = (isodate)) == null ? '' : __t) +
'">' +
((__t = (datestring)) == null ? '' : __t) +
'</time>\n';
}
return __p
};
this["templates"]["occupant"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<li class="' +
((__t = (role)) == null ? '' : __t) +
'"\n ';
if (role === "moderator") { ;
__p += '\n title="' +
((__t = (desc_moderator)) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n ';
if (role === "participant") { ;
__p += '\n title="' +
((__t = (desc_participant)) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n ';
if (role === "visitor") { ;
__p += '\n title="' +
((__t = (desc_visitor)) == null ? '' : __t) +
'"\n ';
} ;
__p += '\n>' +
((__t = (nick)) == null ? '' : __t) +
'</li>\n';
}
return __p
};
this["templates"]["pending_contact"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (allow_chat_pending_contacts) { ;
__p += '\n<a class="open-chat"href="#">\n';
} ;
__p += '\n<span class="pending-contact-name" title="Name: ' +
((__t = (fullname)) == null ? '' : __t) +
'\nJID: ' +
((__t = (jid)) == null ? '' : __t) +
'">' +
((__t = (fullname)) == null ? '' : __t) +
'</span> \n';
if (allow_chat_pending_contacts) { ;
__p += '\n</a>\n';
} ;
__p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
((__t = (desc_remove)) == null ? '' : __t) +
'" href="#"></a>\n';
}
return __p
};
this["templates"]["pending_contacts"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<dt id="pending-xmpp-contacts"><a href="#" class="group-toggle icon-' +
((__t = (toggle_state)) == null ? '' : __t) +
'" title="' +
((__t = (desc_group_toggle)) == null ? '' : __t) +
'">' +
((__t = (label_pending_contacts)) == null ? '' : __t) +
'</a></dt>\n';
}
return __p
};
this["templates"]["register_panel"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>' +
((__t = (label_domain)) == null ? '' : __t) +
'</label>\n <input type="text" name="domain" placeholder="' +
((__t = (domain_placeholder)) == null ? '' : __t) +
'">\n <p class="form-help">' +
((__t = (help_providers)) == null ? '' : __t) +
' <a href="' +
((__t = (href_providers)) == null ? '' : __t) +
'" class="url" target="_blank">' +
((__t = (help_providers_link)) == null ? '' : __t) +
'</a>.</p>\n <input class="submit" type="submit" value="' +
((__t = (label_register)) == null ? '' : __t) +
'">\n</form>\n';
}
return __p
};
this["templates"]["register_tab"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li><a class="s" href="#register">' +
((__t = (label_register)) == null ? '' : __t) +
'</a></li>\n';
}
return __p
};
this["templates"]["registration_form"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<p class="provider-title">' +
((__t = (domain)) == null ? '' : __t) +
'</p>\n<a href=\'https://xmpp.net/result.php?domain=' +
((__t = (domain)) == null ? '' : __t) +
'&amp;type=client\'>\n <img class="provider-score" src=\'https://xmpp.net/badge.php?domain=' +
((__t = (domain)) == null ? '' : __t) +
'\' alt=\'xmpp.net score\' />\n</a>\n<p class="title">' +
((__t = (title)) == null ? '' : __t) +
'</p>\n<p class="instructions">' +
((__t = (instructions)) == null ? '' : __t) +
'</p>\n';
}
return __p
};
this["templates"]["registration_request"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<span class="spinner login-submit"/>\n<p class="info">' +
((__t = (info_message)) == null ? '' : __t) +
'</p>\n<button class="cancel hor_centered">' +
((__t = (cancel)) == null ? '' : __t) +
'</button>\n';
}
return __p
};
this["templates"]["requesting_contact"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (allow_chat_pending_contacts) { ;
__p += '\n<a class="open-chat"href="#">\n';
} ;
__p += '\n<span class="req-contact-name" title="Name: ' +
((__t = (fullname)) == null ? '' : __t) +
'\nJID: ' +
((__t = (jid)) == null ? '' : __t) +
'">' +
((__t = (fullname)) == null ? '' : __t) +
'</span>\n';
if (allow_chat_pending_contacts) { ;
__p += '\n</a>\n';
} ;
__p += '\n<span class="request-actions">\n <a class="accept-xmpp-request icon-checkmark" title="' +
((__t = (desc_accept)) == null ? '' : __t) +
'" href="#"></a>\n <a class="decline-xmpp-request icon-close" title="' +
((__t = (desc_decline)) == null ? '' : __t) +
'" href="#"></a>\n</span>\n';
}
return __p
};
this["templates"]["requesting_contacts"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<dt id="xmpp-contact-requests"><a href="#" class="group-toggle icon-' +
((__t = (toggle_state)) == null ? '' : __t) +
'" title="' +
((__t = (desc_group_toggle)) == null ? '' : __t) +
'">' +
((__t = (label_contact_requests)) == null ? '' : __t) +
'</a></dt>\n';
}
return __p
};
this["templates"]["room_description"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
((__t = (label_desc)) == null ? '' : __t) +
'</strong> ' +
((__t = (desc)) == null ? '' : __t) +
'</p>\n<p class="room-info"><strong>' +
((__t = (label_occ)) == null ? '' : __t) +
'</strong> ' +
((__t = (occ)) == null ? '' : __t) +
'</p>\n<p class="room-info"><strong>' +
((__t = (label_features)) == null ? '' : __t) +
'</strong>\n <ul>\n ';
if (passwordprotected) { ;
__p += '\n <li class="room-info locked">' +
((__t = (label_requires_auth)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (hidden) { ;
__p += '\n <li class="room-info">' +
((__t = (label_hidden)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (membersonly) { ;
__p += '\n <li class="room-info">' +
((__t = (label_requires_invite)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (moderated) { ;
__p += '\n <li class="room-info">' +
((__t = (label_moderated)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (nonanonymous) { ;
__p += '\n <li class="room-info">' +
((__t = (label_non_anon)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (open) { ;
__p += '\n <li class="room-info">' +
((__t = (label_open_room)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (persistent) { ;
__p += '\n <li class="room-info">' +
((__t = (label_permanent_room)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (publicroom) { ;
__p += '\n <li class="room-info">' +
((__t = (label_public)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (semianonymous) { ;
__p += '\n <li class="room-info">' +
((__t = (label_semi_anon)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (temporary) { ;
__p += '\n <li class="room-info">' +
((__t = (label_temp_room)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n ';
if (unmoderated) { ;
__p += '\n <li class="room-info">' +
((__t = (label_unmoderated)) == null ? '' : __t) +
'</li>\n ';
} ;
__p += '\n </ul>\n</p>\n</div>\n';
}
return __p
};
this["templates"]["room_item"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<dd class="available-chatroom">\n<a class="open-room" data-room-jid="' +
((__t = (jid)) == null ? '' : __t) +
'"\n title="' +
((__t = (open_title)) == null ? '' : __t) +
'" href="#">' +
((__t = (_.escape(name))) == null ? '' : __t) +
'</a>\n<a class="room-info icon-room-info" data-room-jid="' +
((__t = (jid)) == null ? '' : __t) +
'"\n title="' +
((__t = (info_title)) == null ? '' : __t) +
'" href="#">&nbsp;</a>\n</dd>\n';
}
return __p
};
this["templates"]["room_panel"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<form class="add-chatroom" action="" method="post">\n <label>' +
((__t = (label_room_name)) == null ? '' : __t) +
'</label>\n <input type="text" name="chatroom" class="new-chatroom-name"\n placeholder="' +
((__t = (label_room_name)) == null ? '' : __t) +
'"/>\n <label>' +
((__t = (label_nickname)) == null ? '' : __t) +
'</label>\n <input type="text" name="nick" class="new-chatroom-nick"\n placeholder="' +
((__t = (label_nickname)) == null ? '' : __t) +
'"/>\n ';
if (server_input_type != 'hidden') { ;
__p += '\n <label' +
((__t = (server_label_global_attr)) == null ? '' : __t) +
'>' +
((__t = (label_server)) == null ? '' : __t) +
'</label>\n ';
} ;
__p += '\n <input type="' +
((__t = (server_input_type)) == null ? '' : __t) +
'" name="server" class="new-chatroom-server"\n placeholder="' +
((__t = (label_server)) == null ? '' : __t) +
'"/>\n <div class="button-group">\n <input type="submit" class="left" name="join" value="' +
((__t = (label_join)) == null ? '' : __t) +
'"/>\n <input type="button" class="right" name="show" id="show-rooms" value="' +
((__t = (label_show_rooms)) == null ? '' : __t) +
'"/>\n </div>\n</form>\n<dl id="available-chatrooms"></dl>\n';
}
return __p
};
this["templates"]["roster"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<span class="input-button-group">\n <input style="display: none;" class="roster-filter" placeholder="' +
((__t = (placeholder)) == null ? '' : __t) +
'">\n <select style="display: none;" class="filter-type">\n <option value="contacts">' +
((__t = (label_contacts)) == null ? '' : __t) +
'</option>\n <option value="groups">' +
((__t = (label_groups)) == null ? '' : __t) +
'</option>\n </select>\n</span>\n';
}
return __p
};
this["templates"]["roster_item"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<a class="open-chat" title="' +
((__t = (title_fullname)) == null ? '' : __t) +
': ' +
((__t = (fullname)) == null ? '' : __t) +
'\nJID: ' +
((__t = (jid)) == null ? '' : __t) +
'\n' +
((__t = (desc_chat)) == null ? '' : __t) +
'" href="#"><span class="icon-' +
((__t = (chat_status)) == null ? '' : __t) +
'" title="' +
((__t = (desc_status)) == null ? '' : __t) +
'"></span>' +
((__t = (fullname)) == null ? '' : __t) +
'</a>\n';
if (allow_contact_removal) { ;
__p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
((__t = (desc_remove)) == null ? '' : __t) +
'" href="#"></a>\n';
} ;
__p += '\n';
}
return __p
};
this["templates"]["search_contact"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li>\n <form class="search-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
((__t = (label_contact_name)) == null ? '' : __t) +
'"/>\n <button type="submit">' +
((__t = (label_search)) == null ? '' : __t) +
'</button>\n </form>\n</li>\n';
}
return __p
};
this["templates"]["select_option"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<option value="' +
((__t = (value)) == null ? '' : __t) +
'" ';
if (selected) { ;
__p += ' selected="selected" ';
} ;
__p += ' >' +
((__t = (label)) == null ? '' : __t) +
'</option>\n';
}
return __p
};
this["templates"]["status_option"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<li>\n <a href="#" class="' +
((__t = ( value )) == null ? '' : __t) +
'" data-value="' +
((__t = ( value )) == null ? '' : __t) +
'">\n <span class="icon-' +
((__t = ( value )) == null ? '' : __t) +
'"></span>\n ' +
((__t = ( text )) == null ? '' : __t) +
'\n </a>\n</li>\n';
}
return __p
};
this["templates"]["toggle_chats"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p +=
((__t = (Minimized)) == null ? '' : __t) +
' <span id="minimized-count">(' +
((__t = (num_minimized)) == null ? '' : __t) +
')</span>\n<span class="unread-message-count"\n ';
if (!num_unread) { ;
__p += ' style="display: none" ';
} ;
__p += '\n href="#">' +
((__t = (num_unread)) == null ? '' : __t) +
'</span>\n';
}
return __p
};
this["templates"]["toolbar"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if (show_emoticons) { ;
__p += '\n <li class="toggle-smiley icon-happy" title="' +
((__t = (label_insert_smiley)) == null ? '' : __t) +
'">\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';
} ;
__p += '\n';
if (show_call_button) { ;
__p += '\n<li class="toggle-call"><a class="icon-phone" title="' +
((__t = (label_start_call)) == null ? '' : __t) +
'"></a></li>\n';
} ;
__p += '\n';
if (show_participants_toggle) { ;
__p += '\n<li class="toggle-participants"><a class="icon-hide-users" title="' +
((__t = (label_hide_participants)) == null ? '' : __t) +
'"></a></li>\n';
} ;
__p += '\n';
if (show_clear_button) { ;
__p += '\n<li class="toggle-clear"><a class="icon-remove" title="' +
((__t = (label_clear)) == null ? '' : __t) +
'"></a></li>\n';
} ;
__p += '\n';
if (allow_otr) { ;
__p += '\n <li class="toggle-otr ' +
((__t = (otr_status_class)) == null ? '' : __t) +
'" title="' +
((__t = (otr_tooltip)) == null ? '' : __t) +
'">\n <span class="chat-toolbar-text">' +
((__t = (otr_translated_status)) == null ? '' : __t) +
'</span>\n ';
if (otr_status == UNENCRYPTED) { ;
__p += '\n <span class="icon-unlocked"></span>\n ';
} ;
__p += '\n ';
if (otr_status == UNVERIFIED) { ;
__p += '\n <span class="icon-lock"></span>\n ';
} ;
__p += '\n ';
if (otr_status == VERIFIED) { ;
__p += '\n <span class="icon-lock"></span>\n ';
} ;
__p += '\n ';
if (otr_status == FINISHED) { ;
__p += '\n <span class="icon-unlocked"></span>\n ';
} ;
__p += '\n <ul>\n ';
if (otr_status == UNENCRYPTED) { ;
__p += '\n <li><a class="start-otr" href="#">' +
((__t = (label_start_encrypted_conversation)) == null ? '' : __t) +
'</a></li>\n ';
} ;
__p += '\n ';
if (otr_status != UNENCRYPTED) { ;
__p += '\n <li><a class="start-otr" href="#">' +
((__t = (label_refresh_encrypted_conversation)) == null ? '' : __t) +
'</a></li>\n <li><a class="end-otr" href="#">' +
((__t = (label_end_encrypted_conversation)) == null ? '' : __t) +
'</a></li>\n <li><a class="auth-otr" data-scheme="smp" href="#">' +
((__t = (label_verify_with_smp)) == null ? '' : __t) +
'</a></li>\n ';
} ;
__p += '\n ';
if (otr_status == UNVERIFIED) { ;
__p += '\n <li><a class="auth-otr" data-scheme="fingerprint" href="#">' +
((__t = (label_verify_with_fingerprints)) == null ? '' : __t) +
'</a></li>\n ';
} ;
__p += '\n <li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank">' +
((__t = (label_whats_this)) == null ? '' : __t) +
'</a></li>\n </ul>\n </li>\n';
} ;
__p += '\n';
}
return __p
};
this["templates"]["trimmed_chat"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<a class="close-chatbox-button icon-close"></a>\n<a class="chat-head-message-count" \n ';
if (!num_unread) { ;
__p += ' style="display: none" ';
} ;
__p += '\n href="#">' +
((__t = (num_unread)) == null ? '' : __t) +
'</a>\n<a href="#" class="restore-chat" title="' +
((__t = (tooltip)) == null ? '' : __t) +
'">\n ' +
((__t = ( title )) == null ? '' : __t) +
'\n</a>\n';
}
return __p
};