2015-01-16 22:07:27 +01:00
|
|
|
this["templates"] = this["templates"] || {};
|
2014-07-06 17:32:06 +02:00
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["action"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="chat-message ' +
|
|
|
|
((__t = (extra_classes)) == 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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["add_contact_dropdown"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["add_contact_form"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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) +
|
2014-10-28 18:21:36 +01:00
|
|
|
'</button>\n </form>\n</li>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["change_status_message"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:56:23 +01:00
|
|
|
__p += '<form id="set-custom-xmpp-status">\n <span class="input-button-group">\n <input type="text" class="custom-xmpp-status" ' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (status_message)) == null ? '' : __t) +
|
2015-01-16 22:56:23 +01:00
|
|
|
'\n placeholder="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_custom_status)) == null ? '' : __t) +
|
2015-01-16 22:56:23 +01:00
|
|
|
'"/>\n <button type="submit">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_save)) == null ? '' : __t) +
|
2015-01-16 22:56:23 +01:00
|
|
|
'</button>\n </span>\n</form>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chat_status"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatarea"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'"/>\n </form>\n</div>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatbox"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="box-flyout" style="height: ' +
|
|
|
|
((__t = (height)) == null ? '' : __t) +
|
|
|
|
'px">\n <div class="dragresize dragresize-tm"></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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatroom"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="box-flyout" style="height: ' +
|
|
|
|
((__t = (height)) == null ? '' : __t) +
|
|
|
|
'px"\n ';
|
|
|
|
if (minimized) { ;
|
|
|
|
__p += ' style="display:none" ';
|
|
|
|
} ;
|
|
|
|
__p += '>\n <div class="dragresize dragresize-tm"></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 = ( 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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatroom_password_form"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__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) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'</label>\n <input type="password" name="password"/>\n <input type="submit" value="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_submit)) == null ? '' : __t) +
|
|
|
|
'"/>\n </form>\n</div>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatroom_sidebar"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chatrooms_tab"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__p += '<li><a class="s" href="#chatrooms">' +
|
|
|
|
((__t = (label_rooms)) == null ? '' : __t) +
|
|
|
|
'</a></li>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["chats_panel"] = function(obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["choose_status"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["contacts_panel"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
2014-09-22 16:05:40 +02:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-07-06 17:32:06 +02:00
|
|
|
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) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'</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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["contacts_tab"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["controlbox"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="box-flyout" style="height: ' +
|
|
|
|
((__t = (height)) == null ? '' : __t) +
|
|
|
|
'px">\n <div class="dragresize dragresize-tm"></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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["controlbox_toggle"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["field"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
2014-11-15 16:40:34 +01:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-07-06 17:32:06 +02:00
|
|
|
with (obj) {
|
|
|
|
__p += '<field var="' +
|
|
|
|
((__t = (name)) == null ? '' : __t) +
|
2014-11-15 16:40:34 +01:00
|
|
|
'">';
|
|
|
|
if (_.isArray(value)) { ;
|
|
|
|
__p += '\n ';
|
|
|
|
_.each(value,function(arrayValue) { ;
|
|
|
|
__p += '<value>' +
|
|
|
|
((__t = (arrayValue)) == null ? '' : __t) +
|
|
|
|
'</value>';
|
|
|
|
}); ;
|
|
|
|
__p += '\n';
|
|
|
|
} else { ;
|
|
|
|
__p += '\n <value>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (value)) == null ? '' : __t) +
|
2014-11-15 16:40:34 +01:00
|
|
|
'</value>\n';
|
|
|
|
} ;
|
|
|
|
__p += '</field>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_captcha"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_checkbox"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<label>' +
|
|
|
|
((__t = (label)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</label>\n<input name="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (name)) == null ? '' : __t) +
|
|
|
|
'" type="' +
|
|
|
|
((__t = (type)) == null ? '' : __t) +
|
|
|
|
'" ' +
|
|
|
|
((__t = (checked)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_input"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
2014-12-01 20:49:50 +01:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-07-06 17:32:06 +02:00
|
|
|
with (obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
|
|
|
|
if (label) { ;
|
|
|
|
__p += '\n<label>\n ' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'\n</label>\n';
|
|
|
|
} ;
|
|
|
|
__p += '\n<input name="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (name)) == null ? '' : __t) +
|
|
|
|
'" type="' +
|
|
|
|
((__t = (type)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'" \n ';
|
|
|
|
if (value) { ;
|
|
|
|
__p += ' value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (value)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (required) { ;
|
|
|
|
__p += ' class="required" ';
|
|
|
|
} ;
|
|
|
|
__p += ' >\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_select"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
2014-11-15 16:40:34 +01:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-07-06 17:32:06 +02:00
|
|
|
with (obj) {
|
|
|
|
__p += '<label>' +
|
|
|
|
((__t = (label)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</label>\n<select name="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (name)) == null ? '' : __t) +
|
2014-11-15 16:40:34 +01:00
|
|
|
'" ';
|
|
|
|
if (multiple) { ;
|
|
|
|
__p += ' multiple="multiple" ';
|
|
|
|
} ;
|
|
|
|
__p += '>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (options)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</select>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_textarea"] = function(obj) {
|
2014-11-15 16:40:34 +01:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<label class="label-ta">' +
|
|
|
|
((__t = (label)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</label>\n<textarea name="' +
|
2014-11-15 16:40:34 +01:00
|
|
|
((__t = (name)) == null ? '' : __t) +
|
|
|
|
'">' +
|
|
|
|
((__t = (value)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</textarea>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["form_username"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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>' +
|
|
|
|
((__t = (domain)) == null ? '' : __t) +
|
|
|
|
'</span>\n</div>\n';
|
2014-11-15 16:40:34 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["group_header"] = function(obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["info"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="chat-info">' +
|
|
|
|
((__t = (message)) == null ? '' : __t) +
|
|
|
|
'</div>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["login_panel"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__p += '<form id="converse-login" method="post">\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_username)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</label>\n <input type="username" name="jid" placeholder="user@server">\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_password)) == null ? '' : __t) +
|
2014-12-01 20:49:50 +01:00
|
|
|
'</label>\n <input type="password" name="password" placeholder="password">\n <input class="submit" type="submit" value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_login)) == null ? '' : __t) +
|
2014-10-28 18:21:36 +01:00
|
|
|
'">\n <span class="conn-feedback"></span>\n</form>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["login_tab"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
__p += '<li><a class="current" href="#login-dialog">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_sign_in)) == null ? '' : __t) +
|
|
|
|
'</a></li>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["message"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<div class="chat-message ' +
|
|
|
|
((__t = (extra_classes)) == 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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["new_day"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<time class="chat-date" datetime="' +
|
|
|
|
((__t = (isodate)) == null ? '' : __t) +
|
|
|
|
'">' +
|
|
|
|
((__t = (datestring)) == null ? '' : __t) +
|
|
|
|
'</time>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["occupant"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["pending_contact"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:07:27 +01:00
|
|
|
__p += '<span class="pending-contact-name" title="Name: ' +
|
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\nJID: ' +
|
|
|
|
((__t = (jid)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'</span> <a class="remove-xmpp-contact icon-remove" title="' +
|
|
|
|
((__t = (desc_remove)) == null ? '' : __t) +
|
|
|
|
'" href="#"></a>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["pending_contacts"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__p += '<dt id="pending-xmpp-contacts"><a href="#" class="group-toggle icon-' +
|
|
|
|
((__t = (toggle_state)) == null ? '' : __t) +
|
|
|
|
'" title="' +
|
|
|
|
((__t = (desc_group_toggle)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_pending_contacts)) == null ? '' : __t) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'</a></dt>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["register_panel"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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) +
|
2014-12-07 22:50:10 +01:00
|
|
|
'</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="' +
|
2014-12-01 20:49:50 +01:00
|
|
|
((__t = (label_register)) == null ? '' : __t) +
|
|
|
|
'">\n</form>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["register_tab"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["registration_form"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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) +
|
|
|
|
'&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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["registration_request"] = function(obj) {
|
2014-12-01 20:49:50 +01:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["requesting_contact"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:07:27 +01:00
|
|
|
__p += '<span class="req-contact-name" title="Name: ' +
|
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\nJID: ' +
|
|
|
|
((__t = (jid)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'</span>\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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["requesting_contacts"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
__p += '<dt id="xmpp-contact-requests"><a href="#" class="group-toggle icon-' +
|
|
|
|
((__t = (toggle_state)) == null ? '' : __t) +
|
|
|
|
'" title="' +
|
|
|
|
((__t = (desc_group_toggle)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_contact_requests)) == null ? '' : __t) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'</a></dt>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["room_description"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["room_item"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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 = (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="#"> </a>\n</dd>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["room_panel"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:07:27 +01:00
|
|
|
__p += '<form class="add-chatroom" action="" method="post">\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_room_name)) == null ? '' : __t) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'</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="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_nickname)) == null ? '' : __t) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'"/>\n <label>' +
|
|
|
|
((__t = (label_server)) == null ? '' : __t) +
|
|
|
|
'</label>\n <input type="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (server_input_type)) == null ? '' : __t) +
|
|
|
|
'" name="server" class="new-chatroom-server"\n placeholder="' +
|
|
|
|
((__t = (label_server)) == null ? '' : __t) +
|
|
|
|
'"/>\n <input type="submit" name="join" value="' +
|
|
|
|
((__t = (label_join)) == null ? '' : __t) +
|
|
|
|
'"/>\n <input type="button" name="show" id="show-rooms" value="' +
|
|
|
|
((__t = (label_show_rooms)) == null ? '' : __t) +
|
|
|
|
'"/>\n</form>\n<dl id="available-chatrooms"></dl>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["roster"] = function(obj) {
|
2014-09-22 16:05:40 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:56:23 +01:00
|
|
|
__p += '<span class="input-button-group">\n <input style="display: none;" class="roster-filter" placeholder="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (placeholder)) == null ? '' : __t) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'">\n <select style="display: none;" class="filter-type">\n <option value="contacts">' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_contacts)) == null ? '' : __t) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'</option>\n <option value="groups">' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_groups)) == null ? '' : __t) +
|
2015-01-16 22:07:27 +01:00
|
|
|
'</option>\n </select>\n</span>\n';
|
2014-09-22 16:05:40 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["roster_item"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
2015-01-16 22:07:27 +01:00
|
|
|
__p += '<a class="open-chat" title="Name: ' +
|
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\nJID: ' +
|
|
|
|
((__t = (jid)) == null ? '' : __t) +
|
|
|
|
'\n' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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<a class="remove-xmpp-contact icon-remove" title="' +
|
|
|
|
((__t = (desc_remove)) == null ? '' : __t) +
|
|
|
|
'" href="#"></a>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["search_contact"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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) +
|
2014-10-28 18:21:36 +01:00
|
|
|
'</button>\n </form>\n</li>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["select_option"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
obj || (obj = {});
|
2014-11-15 16:40:34 +01:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-07-06 17:32:06 +02:00
|
|
|
with (obj) {
|
|
|
|
__p += '<option value="' +
|
|
|
|
((__t = (value)) == null ? '' : __t) +
|
2014-11-15 16:40:34 +01:00
|
|
|
'" ';
|
|
|
|
if (selected) { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += ' >' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label)) == null ? '' : __t) +
|
|
|
|
'</option>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["status_option"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["toggle_chats"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["toolbar"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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="Insert a smilery">\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) { ;
|
2014-09-22 16:05:40 +02:00
|
|
|
__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';
|
2014-07-06 17:32:06 +02:00
|
|
|
} ;
|
|
|
|
__p += '\n';
|
|
|
|
if (show_clear_button) { ;
|
2014-09-22 16:05:40 +02:00
|
|
|
__p += '\n<li class="toggle-clear"><a class="icon-remove" title="' +
|
|
|
|
((__t = (label_clear)) == null ? '' : __t) +
|
|
|
|
'"></a></li>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
} ;
|
|
|
|
__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
|
|
|
|
};
|
|
|
|
|
2015-01-16 22:07:27 +01:00
|
|
|
this["templates"]["trimmed_chat"] = function(obj) {
|
2014-07-06 17:32:06 +02:00
|
|
|
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
|
2014-09-22 17:24:58 +02:00
|
|
|
};
|