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) +
|
2015-08-24 17:56:50 +02:00
|
|
|
'" data-isodate="' +
|
|
|
|
((__t = (isodate)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'">\n <span class="chat-msg-author chat-msg-' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (sender)) == null ? '' : __t) +
|
|
|
|
'">' +
|
|
|
|
((__t = (time)) == null ? '' : __t) +
|
|
|
|
' **' +
|
|
|
|
((__t = (username)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
' </span>\n <span class="chat-msg-content">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__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="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_click_to_chat)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"> ' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<li>\n <form class="pure-form add-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_contact_username)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n <button class="pure-button button-primary" type="submit">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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-11-05 12:17:40 +01:00
|
|
|
__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" ' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (status_message)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
' placeholder="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_custom_status)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n <input type="submit" class="pure-button button-primary" value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_save)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n </span>\n</fieldset>\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) +
|
2015-11-05 12:17:40 +01:00
|
|
|
' icon-' +
|
|
|
|
((__t = (chat_status)) == null ? '' : __t) +
|
|
|
|
'" data-value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (status_message)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'" href="#" title="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (desc_change_status)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'">\n ' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (status_message)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'\n </a>\n <a class="change-xmpp-status-message icon-pencil" href="#" title="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2016-06-20 21:11:43 +02:00
|
|
|
__p += '<div class="chat-area">\n <div class="chat-content"></div>\n <div class="new-msgs-indicator hidden">▼ ' +
|
|
|
|
((__t = ( unread_msgs )) == null ? '' : __t) +
|
|
|
|
' ▼</div>\n <form class="sendXMPPMessage" action="" method="post">\n ';
|
2014-07-06 17:32:06 +02:00
|
|
|
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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__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="' +
|
|
|
|
((__t = (info_close)) == null ? '' : __t) +
|
|
|
|
'"></a>\n <div class="chat-title">\n ';
|
2014-07-06 17:32:06 +02:00
|
|
|
if (url) { ;
|
|
|
|
__p += '\n <a href="' +
|
|
|
|
((__t = (url)) == null ? '' : __t) +
|
2016-03-16 12:49:35 +01:00
|
|
|
'" target="_blank" rel="noopener" class="user">\n ';
|
2014-07-06 17:32:06 +02:00
|
|
|
} ;
|
|
|
|
__p += '\n ' +
|
2016-03-16 12:49:35 +01:00
|
|
|
((__t = ( title )) == null ? '' : __t) +
|
2014-07-06 17:32:06 +02:00
|
|
|
'\n ';
|
|
|
|
if (url) { ;
|
|
|
|
__p += '\n </a>\n ';
|
|
|
|
} ;
|
2016-06-20 21:11:43 +02:00
|
|
|
__p += '\n </div>\n <p class="user-custom-message"><p/>\n </div>\n <div class="chat-body">\n <div class="chat-content"></div>\n <div class="new-msgs-indicator hidden">▼ ' +
|
|
|
|
((__t = ( unread_msgs )) == null ? '' : __t) +
|
|
|
|
' ▼</div>\n ';
|
2016-03-16 12:49:35 +01:00
|
|
|
if (show_textarea) { ;
|
|
|
|
__p += '\n <form class="sendXMPPMessage" action="" method="post">\n ';
|
2014-07-06 17:32:06 +02:00
|
|
|
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) +
|
2016-03-16 12:49:35 +01:00
|
|
|
'"/>\n </form>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n </div>\n</div>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
2016-04-01 15:33:14 +02:00
|
|
|
this["templates"]["chatbox_minimize"] = function(obj) {
|
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__p += '<a class="chatbox-btn toggle-chatbox-button icon-minus" title="' +
|
|
|
|
((__t = (info_minimize)) == null ? '' : __t) +
|
|
|
|
'"></a>\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 = {});
|
2015-11-05 12:17:40 +01:00
|
|
|
var __t, __p = '', __e = _.escape;
|
2014-07-06 17:32:06 +02:00
|
|
|
with (obj) {
|
2016-04-01 15:33:14 +02:00
|
|
|
__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 configure-chatroom-button icon-wrench" style="display:none"></a>\n <div class="chat-title"> ' +
|
2015-10-12 17:09:47 +02:00
|
|
|
((__t = ( _.escape(name) )) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
' </div>\n <p class="chatroom-topic"><p/>\n </div>\n <div class="chat-body chatroom-body"><span class="spinner centered"/></div>\n</div>\n';
|
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
|
|
|
this["templates"]["chatroom_form"] = function(obj) {
|
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__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';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<div class="chatroom-form-container">\n <form class="pure-form converse-form chatroom-form">\n <fieldset>\n <legend>' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (heading)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</legend>\n <label>' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_password)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</label>\n <input type="password" name="password"/>\n </fieldset>\n <fieldset>\n <input class="pure-button button-primary" type="submit" value="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_submit)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n </fieldset>\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 = {});
|
2016-06-20 21:11:43 +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) {
|
2016-06-20 21:11:43 +02:00
|
|
|
__p += '<!-- <div class="occupants"> -->\n';
|
|
|
|
if (allow_muc_invitations) { ;
|
|
|
|
__p += '\n<form class="pure-form room-invite">\n <input class="invited-contact" placeholder="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_invitation)) == null ? '' : __t) +
|
2016-06-20 21:11:43 +02:00
|
|
|
'" type="text"/>\n</form>\n';
|
|
|
|
} ;
|
|
|
|
__p += '\n<p class="occupants-heading">' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_occupants)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
':</p>\n<ul class="occupant-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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<div id="minimized-chats">\n <a id="toggle-minimized-chats" href="#"></a>\n <div class="flyout 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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__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">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) +
|
2016-02-06 10:23:50 +01:00
|
|
|
'</option>\n ';
|
|
|
|
if (include_offline_state) { ;
|
|
|
|
__p += '\n <option value="offline">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_offline)) == null ? '' : __t) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'</option>\n ';
|
2016-02-06 10:23:50 +01:00
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
2014-09-22 16:05:40 +02:00
|
|
|
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 = {});
|
2016-04-01 15:33:14 +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) {
|
2016-04-01 15:33:14 +02:00
|
|
|
__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 ';
|
|
|
|
if (!sticky_controlbox) { ;
|
|
|
|
__p += '\n <a class="chatbox-btn close-chatbox-button icon-close"></a>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
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) +
|
2015-05-01 12:29:48 +02:00
|
|
|
'"\n ';
|
2014-12-01 20:49:50 +01:00
|
|
|
if (value) { ;
|
|
|
|
__p += ' value="' +
|
|
|
|
((__t = (value)) == null ? '' : __t) +
|
|
|
|
'" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (required) { ;
|
|
|
|
__p += ' class="required" ';
|
|
|
|
} ;
|
2015-05-01 12:29:48 +02:00
|
|
|
__p += ' />\n <span title="' +
|
|
|
|
((__t = (domain)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-12-01 20:49:50 +01:00
|
|
|
((__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 = {});
|
2015-05-01 12:29:48 +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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">\n ';
|
2015-05-01 12:29:48 +02:00
|
|
|
if (auto_login) { ;
|
|
|
|
__p += '\n <span class="spinner login-submit"/>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (!auto_login) { ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (authentication == LOGIN) { ;
|
|
|
|
__p += '\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_username)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</label>\n <input type="text" name="jid" placeholder="' +
|
2015-07-04 17:21:21 +02:00
|
|
|
((__t = (placeholder_username)) == null ? '' : __t) +
|
|
|
|
'">\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_password)) == null ? '' : __t) +
|
2015-07-04 17:21:21 +02:00
|
|
|
'</label>\n <input type="password" name="password" placeholder="' +
|
|
|
|
((__t = (placeholder_password)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'">\n <input class="pure-button button-primary" type="submit" value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_login)) == null ? '' : __t) +
|
2015-05-01 12:29:48 +02:00
|
|
|
'">\n <span class="conn-feedback"></span>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (authentication == ANONYMOUS) { ;
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '\n <input type="pure-button button-primary" class="submit login-anon" value="' +
|
2015-05-01 12:29:48 +02:00
|
|
|
((__t = (label_anon_login)) == null ? '' : __t) +
|
|
|
|
'"/>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
if (authentication == PREBIND) { ;
|
|
|
|
__p += '\n <p>Disconnected.</p>\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\n ';
|
|
|
|
} ;
|
|
|
|
__p += '\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) +
|
2015-08-24 17:56:50 +02:00
|
|
|
'" data-isodate="' +
|
|
|
|
((__t = (isodate)) == null ? '' : __t) +
|
2015-10-12 17:09:47 +02:00
|
|
|
'" data-msgid="' +
|
|
|
|
((__t = (msgid)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'">\n <span class="chat-msg-author chat-msg-' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (sender)) == null ? '' : __t) +
|
|
|
|
'">' +
|
|
|
|
((__t = (time)) == null ? '' : __t) +
|
|
|
|
' ' +
|
|
|
|
((__t = (username)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
': </span>\n <span class="chat-msg-content">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<time class="chat-info chat-date" data-isodate="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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 ';
|
2015-11-05 12:17:40 +01:00
|
|
|
if (role === "occupant") { ;
|
2014-07-06 17:32:06 +02:00
|
|
|
__p += '\n title="' +
|
2015-11-05 12:17:40 +01:00
|
|
|
((__t = (desc_occupant)) == null ? '' : __t) +
|
2014-07-06 17:32:06 +02:00
|
|
|
'"\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 = {});
|
2015-07-04 17:21:21 +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) {
|
2015-07-04 17:21:21 +02:00
|
|
|
|
|
|
|
if (allow_chat_pending_contacts) { ;
|
|
|
|
__p += '\n<a class="open-chat"href="#">\n';
|
|
|
|
} ;
|
|
|
|
__p += '\n<span class="pending-contact-name" title="Name: ' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\nJID: ' +
|
|
|
|
((__t = (jid)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
2015-07-04 17:21:21 +02:00
|
|
|
'</span> \n';
|
|
|
|
if (allow_chat_pending_contacts) { ;
|
|
|
|
__p += '\n</a>\n';
|
|
|
|
} ;
|
|
|
|
__p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<dt class="roster-group" id="pending-xmpp-contacts"><a href="#" class="group-toggle icon-' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<form id="converse-register" class="pure-form converse-form">\n <span class="reg-feedback"></span>\n <label>' +
|
2014-12-01 20:49:50 +01:00
|
|
|
((__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) +
|
2016-03-16 12:49:35 +01:00
|
|
|
'" class="url" target="_blank" rel="noopener">' +
|
2014-12-07 22:50:10 +01:00
|
|
|
((__t = (help_providers_link)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</a>.</p>\n <input class="pure-button button-primary" 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) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</p>\n<button class="pure-button button-cancel hor_centered">' +
|
2014-12-01 20:49:50 +01:00
|
|
|
((__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 = {});
|
2015-07-04 17:21:21 +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) {
|
2015-07-04 17:21:21 +02:00
|
|
|
|
|
|
|
if (allow_chat_pending_contacts) { ;
|
|
|
|
__p += '\n<a class="open-chat"href="#">\n';
|
|
|
|
} ;
|
|
|
|
__p += '\n<span class="req-contact-name" title="Name: ' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\nJID: ' +
|
|
|
|
((__t = (jid)) == null ? '' : __t) +
|
|
|
|
'">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
2015-07-04 17:21:21 +02:00
|
|
|
'</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="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<dt class="roster-group" id="xmpp-contact-requests"><a href="#" class="group-toggle icon-' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__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="#">' +
|
2015-10-12 17:09:47 +02:00
|
|
|
((__t = (_.escape(name))) == null ? '' : __t) +
|
2014-07-06 17:32:06 +02:00
|
|
|
'</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 = {});
|
2015-07-04 17:21:21 +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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">\n <fieldset>\n <label>' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_room_name)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</label>\n <input type="text" name="chatroom" class="new-chatroom-name" placeholder="' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__t = (label_room_name)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n <label>' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__t = (label_nickname)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</label> <input type="text" name="nick" class="new-chatroom-nick" placeholder="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_nickname)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n <input type="submit" class="pure-button button-primary" name="join" value="' +
|
|
|
|
((__t = (label_join)) == null ? '' : __t) +
|
|
|
|
'"/>\n </fieldset>\n <fieldset>\n ';
|
2015-07-04 17:21:21 +02:00
|
|
|
if (server_input_type != 'hidden') { ;
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '\n <label' +
|
2015-03-22 14:19:36 +01:00
|
|
|
((__t = (server_label_global_attr)) == null ? '' : __t) +
|
|
|
|
'>' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__t = (label_server)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</label>\n ';
|
2015-07-04 17:21:21 +02:00
|
|
|
} ;
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '\n <input type="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (server_input_type)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'" name="server" class="new-chatroom-server" placeholder="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_server)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n <input type="button" class="pure-button button-secondary" name="show" id="show-rooms" value="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (label_show_rooms)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'"/>\n </fieldset>\n</form>\n<dl id="available-chatrooms"></dl>\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
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 = {});
|
2016-05-03 17:37:10 +02:00
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
2014-09-22 16:05:40 +02:00
|
|
|
with (obj) {
|
2016-05-03 17:37:10 +02:00
|
|
|
__p += '<form class="pure-form roster-filter-group input-button-group">\n <input value="' +
|
|
|
|
((__t = (filter_text)) == null ? '' : __t) +
|
|
|
|
'" class="roster-filter"\n placeholder="' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (placeholder)) == null ? '' : __t) +
|
2016-05-03 17:37:10 +02:00
|
|
|
'"\n ';
|
|
|
|
if (filter_type === 'state') { ;
|
|
|
|
__p += ' style="display: none" ';
|
|
|
|
} ;
|
|
|
|
__p += ' >\n <select class="state-type" ';
|
|
|
|
if (filter_type !== 'state') { ;
|
|
|
|
__p += ' style="display: none" ';
|
|
|
|
} ;
|
|
|
|
__p += ' >\n <option value="">' +
|
|
|
|
((__t = (label_any)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'online') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="online">' +
|
|
|
|
((__t = (label_online)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'chatty') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="chatty">' +
|
|
|
|
((__t = (label_chatty)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'dnd') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="dnd">' +
|
|
|
|
((__t = (label_busy)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'away') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="away">' +
|
|
|
|
((__t = (label_away)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'xa') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="xa">' +
|
|
|
|
((__t = (label_xa)) == null ? '' : __t) +
|
|
|
|
'</option>\n <option ';
|
|
|
|
if (chat_state === 'offline') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="offline">' +
|
|
|
|
((__t = (label_offline)) == null ? '' : __t) +
|
|
|
|
'</option>\n </select>\n <select class="filter-type">\n <option ';
|
|
|
|
if (filter_type === 'contacts') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="contacts">' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_contacts)) == null ? '' : __t) +
|
2016-05-03 17:37:10 +02:00
|
|
|
'</option>\n <option ';
|
|
|
|
if (filter_type === 'groups') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="groups">' +
|
2014-09-22 16:05:40 +02:00
|
|
|
((__t = (label_groups)) == null ? '' : __t) +
|
2016-05-03 17:37:10 +02:00
|
|
|
'</option>\n <option ';
|
|
|
|
if (filter_type === 'state') { ;
|
|
|
|
__p += ' selected="selected" ';
|
|
|
|
} ;
|
|
|
|
__p += '\n value="state">' +
|
|
|
|
((__t = (label_state)) == null ? '' : __t) +
|
2015-11-05 12:17:40 +01:00
|
|
|
'</option>\n </select>\n</form>\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 = {});
|
2015-03-22 14:19:36 +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) {
|
2015-07-04 17:21:21 +02:00
|
|
|
__p += '<a class="open-chat" title="' +
|
|
|
|
((__t = (title_fullname)) == null ? '' : __t) +
|
|
|
|
': ' +
|
2015-01-16 22:07:27 +01:00
|
|
|
((__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) +
|
2015-03-22 14:19:36 +01:00
|
|
|
'</a>\n';
|
|
|
|
if (allow_contact_removal) { ;
|
|
|
|
__p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__t = (desc_remove)) == null ? '' : __t) +
|
|
|
|
'" href="#"></a>\n';
|
2015-03-22 14:19:36 +01:00
|
|
|
} ;
|
|
|
|
__p += '\n';
|
2014-07-06 17:32:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
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) { ;
|
2015-07-04 17:21:21 +02:00
|
|
|
__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';
|
2014-07-06 17:32:06 +02:00
|
|
|
} ;
|
|
|
|
__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';
|
2015-11-05 12:17:40 +01:00
|
|
|
if (show_occupants_toggle) { ;
|
|
|
|
__p += '\n<li class="toggle-occupants"><a class="icon-hide-users" title="' +
|
|
|
|
((__t = (label_hide_occupants)) == null ? '' : __t) +
|
2014-09-22 16:05:40 +02:00
|
|
|
'"></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';
|
2016-02-26 18:28:18 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
|
|
|
this["templates"]["toolbar_otr"] = function(obj) {
|
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
|
|
|
|
function print() { __p += __j.call(arguments, '') }
|
|
|
|
with (obj) {
|
|
|
|
|
2014-07-06 17:32:06 +02:00
|
|
|
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 ';
|
|
|
|
} ;
|
2016-03-16 12:49:35 +01:00
|
|
|
__p += '\n <li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank" rel="noopener">' +
|
2014-07-06 17:32:06 +02:00
|
|
|
((__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) {
|
2015-11-05 12:17:40 +01:00
|
|
|
__p += '<a class="chatbox-btn close-chatbox-button icon-close"></a>\n<a class="chat-head-message-count" \n ';
|
2014-07-06 17:32:06 +02:00
|
|
|
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';
|
|
|
|
|
2015-11-05 12:17:40 +01:00
|
|
|
}
|
|
|
|
return __p
|
|
|
|
};
|
|
|
|
|
|
|
|
this["templates"]["vcard"] = function(obj) {
|
|
|
|
obj || (obj = {});
|
|
|
|
var __t, __p = '', __e = _.escape;
|
|
|
|
with (obj) {
|
|
|
|
__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 ' +
|
|
|
|
((__t = (fullname)) == null ? '' : __t) +
|
|
|
|
'\n <label>URL:</label>\n ' +
|
|
|
|
((__t = (url)) == null ? '' : __t) +
|
|
|
|
'\n </fieldset>\n <fieldset>\n <input type="button" class="pure-button button-cancel" value="' +
|
|
|
|
((__t = (label_return)) == null ? '' : __t) +
|
|
|
|
'"/>\n </fieldset>\n</form>\n';
|
|
|
|
|
2014-07-06 17:32:06 +02:00
|
|
|
}
|
|
|
|
return __p
|
2014-09-22 17:24:58 +02:00
|
|
|
};
|