]> git.mxchange.org Git - friendica-addons.git/blob - xmpp/converse/builds/templates.js
libravatar addon HU translation added THX Balázs Úr
[friendica-addons.git] / xmpp / converse / builds / templates.js
1 this["templates"] = this["templates"] || {};
2
3 this["templates"]["action"] = function(obj) {
4 obj || (obj = {});
5 var __t, __p = '', __e = _.escape;
6 with (obj) {
7 __p += '<div class="chat-message ' +
8 ((__t = (extra_classes)) == null ? '' : __t) +
9 '" data-isodate="' +
10 ((__t = (isodate)) == null ? '' : __t) +
11 '">\n    <span class="chat-msg-author chat-msg-' +
12 ((__t = (sender)) == null ? '' : __t) +
13 '">' +
14 ((__t = (time)) == null ? '' : __t) +
15 ' **' +
16 ((__t = (username)) == null ? '' : __t) +
17 ' </span>\n    <span class="chat-msg-content">' +
18 ((__t = (message)) == null ? '' : __t) +
19 '</span>\n</div>\n';
20
21 }
22 return __p
23 };
24
25 this["templates"]["add_contact_dropdown"] = function(obj) {
26 obj || (obj = {});
27 var __t, __p = '', __e = _.escape;
28 with (obj) {
29 __p += '<dl class="add-converse-contact dropdown">\n    <dt id="xmpp-contact-search" class="fancy-dropdown">\n        <a class="toggle-xmpp-contact-form icon-plus" href="#" title="' +
30 ((__t = (label_click_to_chat)) == null ? '' : __t) +
31 '"> ' +
32 ((__t = (label_add_contact)) == null ? '' : __t) +
33 '</a>\n    </dt>\n    <dd class="search-xmpp" style="display:none"><ul></ul></dd>\n</dl>\n';
34
35 }
36 return __p
37 };
38
39 this["templates"]["add_contact_form"] = function(obj) {
40 obj || (obj = {});
41 var __t, __p = '', __e = _.escape;
42 with (obj) {
43 __p += '<li>\n    <form class="pure-form add-xmpp-contact">\n        <input type="text"\n            name="identifier"\n            class="username"\n            placeholder="' +
44 ((__t = (label_contact_username)) == null ? '' : __t) +
45 '"/>\n        <button class="pure-button button-primary" type="submit">' +
46 ((__t = (label_add)) == null ? '' : __t) +
47 '</button>\n    </form>\n</li>\n';
48
49 }
50 return __p
51 };
52
53 this["templates"]["change_status_message"] = function(obj) {
54 obj || (obj = {});
55 var __t, __p = '', __e = _.escape;
56 with (obj) {
57 __p += '<form id="set-custom-xmpp-status" class="pure-form">\n<fieldset>\n    <span class="input-button-group">\n        <input type="text" class="custom-xmpp-status" ' +
58 ((__t = (status_message)) == null ? '' : __t) +
59 ' placeholder="' +
60 ((__t = (label_custom_status)) == null ? '' : __t) +
61 '"/>\n        <input type="submit" class="pure-button button-primary" value="' +
62 ((__t = (label_save)) == null ? '' : __t) +
63 '"/>\n    </span>\n</fieldset>\n</form>\n';
64
65 }
66 return __p
67 };
68
69 this["templates"]["chat_status"] = function(obj) {
70 obj || (obj = {});
71 var __t, __p = '', __e = _.escape;
72 with (obj) {
73 __p += '<div class="xmpp-status">\n    <a class="choose-xmpp-status ' +
74 ((__t = (chat_status)) == null ? '' : __t) +
75 ' icon-' +
76 ((__t = (chat_status)) == null ? '' : __t) +
77 '" data-value="' +
78 ((__t = (status_message)) == null ? '' : __t) +
79 '" href="#" title="' +
80 ((__t = (desc_change_status)) == null ? '' : __t) +
81 '">\n        ' +
82 ((__t = (status_message)) == null ? '' : __t) +
83 '\n    </a>\n    <a class="change-xmpp-status-message icon-pencil" href="#" title="' +
84 ((__t = (desc_custom_status)) == null ? '' : __t) +
85 '"></a>\n</div>\n';
86
87 }
88 return __p
89 };
90
91 this["templates"]["chatarea"] = function(obj) {
92 obj || (obj = {});
93 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
94 function print() { __p += __j.call(arguments, '') }
95 with (obj) {
96 __p += '<div class="chat-area">\n    <div class="chat-content"></div>\n    <form class="sendXMPPMessage" action="" method="post">\n        ';
97  if (show_toolbar) { ;
98 __p += '\n            <ul class="chat-toolbar no-text-select"></ul>\n        ';
99  } ;
100 __p += '\n        <textarea type="text" class="chat-textarea" \n            placeholder="' +
101 ((__t = (label_message)) == null ? '' : __t) +
102 '"/>\n    </form>\n</div>\n';
103
104 }
105 return __p
106 };
107
108 this["templates"]["chatbox"] = function(obj) {
109 obj || (obj = {});
110 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
111 function print() { __p += __j.call(arguments, '') }
112 with (obj) {
113 __p += '<div class="flyout box-flyout">\n    <div class="dragresize dragresize-top"></div>\n    <div class="dragresize dragresize-topleft"></div>\n    <div class="dragresize dragresize-left"></div>\n    <div class="chat-head chat-head-chatbox">\n        <a class="chatbox-btn close-chatbox-button icon-close" title="' +
114 ((__t = (info_close)) == null ? '' : __t) +
115 '"></a>\n        <a class="chatbox-btn toggle-chatbox-button icon-minus" title="' +
116 ((__t = (info_minimize)) == null ? '' : __t) +
117 '"></a>\n        <div class="chat-title">\n            ';
118  if (url) { ;
119 __p += '\n                <a href="' +
120 ((__t = (url)) == null ? '' : __t) +
121 '" target="_blank" class="user">\n            ';
122  } ;
123 __p += '\n                    ' +
124 ((__t = ( fullname )) == null ? '' : __t) +
125 '\n            ';
126  if (url) { ;
127 __p += '\n                </a>\n            ';
128  } ;
129 __p += '\n        </div>\n        <p class="user-custom-message"><p/>\n    </div>\n    <div class="chat-body">\n        <div class="chat-content"></div>\n        <form class="sendXMPPMessage" action="" method="post">\n            ';
130  if (show_toolbar) { ;
131 __p += '\n                <ul class="chat-toolbar no-text-select"></ul>\n            ';
132  } ;
133 __p += '\n        <textarea\n            type="text"\n            class="chat-textarea"\n            placeholder="' +
134 ((__t = (label_personal_message)) == null ? '' : __t) +
135 '"/>\n        </form>\n    </div>\n</div>\n';
136
137 }
138 return __p
139 };
140
141 this["templates"]["chatroom"] = function(obj) {
142 obj || (obj = {});
143 var __t, __p = '', __e = _.escape;
144 with (obj) {
145 __p += '<div class="flyout box-flyout">\n    <div class="dragresize dragresize-top"></div>\n    <div class="dragresize dragresize-topleft"></div>\n    <div class="dragresize dragresize-left"></div>\n    <div class="chat-head chat-head-chatroom">\n        <a class="chatbox-btn close-chatbox-button icon-close"></a>\n        <a class="chatbox-btn toggle-chatbox-button icon-minus"></a>\n        <a class="chatbox-btn configure-chatroom-button icon-wrench" style="display:none"></a>\n        <div class="chat-title"> ' +
146 ((__t = ( _.escape(name) )) == null ? '' : __t) +
147 ' </div>\n        <p class="chatroom-topic"><p/>\n    </div>\n    <div class="chat-body chatroom-body"><span class="spinner centered"/></div>\n</div>\n';
148
149 }
150 return __p
151 };
152
153 this["templates"]["chatroom_form"] = function(obj) {
154 obj || (obj = {});
155 var __t, __p = '', __e = _.escape;
156 with (obj) {
157 __p += '<div class="chatroom-form-container">\n    <form class="pure-form pure-form-stacked converse-form chatroom-form">\n        <fieldset>\n            <span class="spinner centered"/>\n        </fieldset>\n    </form>\n</div>\n';
158
159 }
160 return __p
161 };
162
163 this["templates"]["chatroom_password_form"] = function(obj) {
164 obj || (obj = {});
165 var __t, __p = '', __e = _.escape;
166 with (obj) {
167 __p += '<div class="chatroom-form-container">\n    <form class="pure-form converse-form chatroom-form">\n        <fieldset>\n            <legend>' +
168 ((__t = (heading)) == null ? '' : __t) +
169 '</legend>\n            <label>' +
170 ((__t = (label_password)) == null ? '' : __t) +
171 '</label>\n            <input type="password" name="password"/>\n        </fieldset>\n        <fieldset>\n            <input class="pure-button button-primary" type="submit" value="' +
172 ((__t = (label_submit)) == null ? '' : __t) +
173 '"/>\n        </fieldset>\n    </form>\n</div>\n';
174
175 }
176 return __p
177 };
178
179 this["templates"]["chatroom_sidebar"] = function(obj) {
180 obj || (obj = {});
181 var __t, __p = '', __e = _.escape;
182 with (obj) {
183 __p += '<!-- <div class="occupants"> -->\n<form class="pure-form room-invite">\n    <input class="invited-contact" placeholder="' +
184 ((__t = (label_invitation)) == null ? '' : __t) +
185 '" type="text"/>\n</form>\n<p class="occupants-heading">' +
186 ((__t = (label_occupants)) == null ? '' : __t) +
187 ':</p>\n<ul class="occupant-list"></ul>\n<!-- </div> -->\n';
188
189 }
190 return __p
191 };
192
193 this["templates"]["chatrooms_tab"] = function(obj) {
194 obj || (obj = {});
195 var __t, __p = '', __e = _.escape;
196 with (obj) {
197 __p += '<li><a class="s" href="#chatrooms">' +
198 ((__t = (label_rooms)) == null ? '' : __t) +
199 '</a></li>\n';
200
201 }
202 return __p
203 };
204
205 this["templates"]["chats_panel"] = function(obj) {
206 obj || (obj = {});
207 var __t, __p = '', __e = _.escape;
208 with (obj) {
209 __p += '<div id="minimized-chats">\n    <a id="toggle-minimized-chats" href="#"></a>\n    <div class="flyout minimized-chats-flyout"></div>\n</div>\n';
210
211 }
212 return __p
213 };
214
215 this["templates"]["choose_status"] = function(obj) {
216 obj || (obj = {});
217 var __t, __p = '', __e = _.escape;
218 with (obj) {
219 __p += '<dl id="target" class="dropdown">\n    <dt id="fancy-xmpp-status-select" class="fancy-dropdown"></dt>\n    <dd><ul class="xmpp-status-menu"></ul></dd>\n</dl>\n';
220
221 }
222 return __p
223 };
224
225 this["templates"]["contacts_panel"] = function(obj) {
226 obj || (obj = {});
227 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
228 function print() { __p += __j.call(arguments, '') }
229 with (obj) {
230 __p += '<form class="pure-form set-xmpp-status" action="" method="post">\n    <span id="xmpp-status-holder">\n        <select id="select-xmpp-status" style="display:none">\n            <option value="online">' +
231 ((__t = (label_online)) == null ? '' : __t) +
232 '</option>\n            <option value="dnd">' +
233 ((__t = (label_busy)) == null ? '' : __t) +
234 '</option>\n            <option value="away">' +
235 ((__t = (label_away)) == null ? '' : __t) +
236 '</option>\n            <option value="offline">' +
237 ((__t = (label_offline)) == null ? '' : __t) +
238 '</option>\n            ';
239  if (allow_logout)  { ;
240 __p += '\n            <option value="logout">' +
241 ((__t = (label_logout)) == null ? '' : __t) +
242 '</option>\n            ';
243  } ;
244 __p += '\n        </select>\n    </span>\n</form>\n';
245
246 }
247 return __p
248 };
249
250 this["templates"]["contacts_tab"] = function(obj) {
251 obj || (obj = {});
252 var __t, __p = '', __e = _.escape;
253 with (obj) {
254 __p += '<li><a class="s current" href="#users">' +
255 ((__t = (label_contacts)) == null ? '' : __t) +
256 '</a></li>\n';
257
258 }
259 return __p
260 };
261
262 this["templates"]["controlbox"] = function(obj) {
263 obj || (obj = {});
264 var __t, __p = '', __e = _.escape;
265 with (obj) {
266 __p += '<div class="flyout box-flyout">\n    <div class="dragresize dragresize-top"></div>\n    <div class="dragresize dragresize-topleft"></div>\n    <div class="dragresize dragresize-left"></div>\n    <div class="chat-head controlbox-head">\n        <ul id="controlbox-tabs"></ul>\n        <a class="chatbox-btn close-chatbox-button icon-close"></a>\n    </div>\n    <div class="controlbox-panes"></div>\n</div>\n';
267
268 }
269 return __p
270 };
271
272 this["templates"]["controlbox_toggle"] = function(obj) {
273 obj || (obj = {});
274 var __t, __p = '', __e = _.escape;
275 with (obj) {
276 __p += '<span class="conn-feedback">' +
277 ((__t = (label_toggle)) == null ? '' : __t) +
278 '</span>\n<span style="display: none" id="online-count">(0)</span>\n';
279
280 }
281 return __p
282 };
283
284 this["templates"]["field"] = function(obj) {
285 obj || (obj = {});
286 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
287 function print() { __p += __j.call(arguments, '') }
288 with (obj) {
289 __p += '<field var="' +
290 ((__t = (name)) == null ? '' : __t) +
291 '">';
292  if (_.isArray(value)) { ;
293 __p += '\n    ';
294  _.each(value,function(arrayValue) { ;
295 __p += '<value>' +
296 ((__t = (arrayValue)) == null ? '' : __t) +
297 '</value>';
298  }); ;
299 __p += '\n';
300  } else { ;
301 __p += '\n    <value>' +
302 ((__t = (value)) == null ? '' : __t) +
303 '</value>\n';
304  } ;
305 __p += '</field>\n';
306
307 }
308 return __p
309 };
310
311 this["templates"]["form_captcha"] = function(obj) {
312 obj || (obj = {});
313 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
314 function print() { __p += __j.call(arguments, '') }
315 with (obj) {
316
317  if (label) { ;
318 __p += '\n<label>\n    ' +
319 ((__t = (label)) == null ? '' : __t) +
320 '\n</label>\n';
321  } ;
322 __p += '\n<img src="data:' +
323 ((__t = (type)) == null ? '' : __t) +
324 ';base64,' +
325 ((__t = (data)) == null ? '' : __t) +
326 '">\n<input name="' +
327 ((__t = (name)) == null ? '' : __t) +
328 '" type="text" ';
329  if (required) { ;
330 __p += ' class="required" ';
331  } ;
332 __p += ' >\n\n\n';
333
334 }
335 return __p
336 };
337
338 this["templates"]["form_checkbox"] = function(obj) {
339 obj || (obj = {});
340 var __t, __p = '', __e = _.escape;
341 with (obj) {
342 __p += '<label>' +
343 ((__t = (label)) == null ? '' : __t) +
344 '</label>\n<input name="' +
345 ((__t = (name)) == null ? '' : __t) +
346 '" type="' +
347 ((__t = (type)) == null ? '' : __t) +
348 '" ' +
349 ((__t = (checked)) == null ? '' : __t) +
350 '>\n';
351
352 }
353 return __p
354 };
355
356 this["templates"]["form_input"] = function(obj) {
357 obj || (obj = {});
358 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
359 function print() { __p += __j.call(arguments, '') }
360 with (obj) {
361
362  if (label) { ;
363 __p += '\n<label>\n    ' +
364 ((__t = (label)) == null ? '' : __t) +
365 '\n</label>\n';
366  } ;
367 __p += '\n<input name="' +
368 ((__t = (name)) == null ? '' : __t) +
369 '" type="' +
370 ((__t = (type)) == null ? '' : __t) +
371 '" \n    ';
372  if (value) { ;
373 __p += ' value="' +
374 ((__t = (value)) == null ? '' : __t) +
375 '" ';
376  } ;
377 __p += '\n    ';
378  if (required) { ;
379 __p += ' class="required" ';
380  } ;
381 __p += ' >\n';
382
383 }
384 return __p
385 };
386
387 this["templates"]["form_select"] = function(obj) {
388 obj || (obj = {});
389 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
390 function print() { __p += __j.call(arguments, '') }
391 with (obj) {
392 __p += '<label>' +
393 ((__t = (label)) == null ? '' : __t) +
394 '</label>\n<select name="' +
395 ((__t = (name)) == null ? '' : __t) +
396 '"  ';
397  if (multiple) { ;
398 __p += ' multiple="multiple" ';
399  } ;
400 __p += '>' +
401 ((__t = (options)) == null ? '' : __t) +
402 '</select>\n';
403
404 }
405 return __p
406 };
407
408 this["templates"]["form_textarea"] = function(obj) {
409 obj || (obj = {});
410 var __t, __p = '', __e = _.escape;
411 with (obj) {
412 __p += '<label class="label-ta">' +
413 ((__t = (label)) == null ? '' : __t) +
414 '</label>\n<textarea name="' +
415 ((__t = (name)) == null ? '' : __t) +
416 '">' +
417 ((__t = (value)) == null ? '' : __t) +
418 '</textarea>\n';
419
420 }
421 return __p
422 };
423
424 this["templates"]["form_username"] = function(obj) {
425 obj || (obj = {});
426 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
427 function print() { __p += __j.call(arguments, '') }
428 with (obj) {
429
430  if (label) { ;
431 __p += '\n<label>\n    ' +
432 ((__t = (label)) == null ? '' : __t) +
433 '\n</label>\n';
434  } ;
435 __p += '\n<div class="input-group">\n    <input name="' +
436 ((__t = (name)) == null ? '' : __t) +
437 '" type="' +
438 ((__t = (type)) == null ? '' : __t) +
439 '"\n        ';
440  if (value) { ;
441 __p += ' value="' +
442 ((__t = (value)) == null ? '' : __t) +
443 '" ';
444  } ;
445 __p += '\n        ';
446  if (required) { ;
447 __p += ' class="required" ';
448  } ;
449 __p += ' />\n    <span title="' +
450 ((__t = (domain)) == null ? '' : __t) +
451 '">' +
452 ((__t = (domain)) == null ? '' : __t) +
453 '</span>\n</div>\n';
454
455 }
456 return __p
457 };
458
459 this["templates"]["group_header"] = function(obj) {
460 obj || (obj = {});
461 var __t, __p = '', __e = _.escape;
462 with (obj) {
463 __p += '<a href="#" class="group-toggle icon-' +
464 ((__t = (toggle_state)) == null ? '' : __t) +
465 '" title="' +
466 ((__t = (desc_group_toggle)) == null ? '' : __t) +
467 '">' +
468 ((__t = (label_group)) == null ? '' : __t) +
469 '</a>\n';
470
471 }
472 return __p
473 };
474
475 this["templates"]["info"] = function(obj) {
476 obj || (obj = {});
477 var __t, __p = '', __e = _.escape;
478 with (obj) {
479 __p += '<div class="chat-info">' +
480 ((__t = (message)) == null ? '' : __t) +
481 '</div>\n';
482
483 }
484 return __p
485 };
486
487 this["templates"]["login_panel"] = function(obj) {
488 obj || (obj = {});
489 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
490 function print() { __p += __j.call(arguments, '') }
491 with (obj) {
492 __p += '<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">\n    ';
493  if (auto_login) { ;
494 __p += '\n        <span class="spinner login-submit"/>\n    ';
495  } ;
496 __p += '\n    ';
497  if (!auto_login) { ;
498 __p += '\n        ';
499  if (authentication == LOGIN) { ;
500 __p += '\n            <label>' +
501 ((__t = (label_username)) == null ? '' : __t) +
502 '</label>\n            <input type="text" name="jid" placeholder="' +
503 ((__t = (placeholder_username)) == null ? '' : __t) +
504 '">\n            <label>' +
505 ((__t = (label_password)) == null ? '' : __t) +
506 '</label>\n            <input type="password" name="password" placeholder="' +
507 ((__t = (placeholder_password)) == null ? '' : __t) +
508 '">\n            <input class="pure-button button-primary" type="submit" value="' +
509 ((__t = (label_login)) == null ? '' : __t) +
510 '">\n            <span class="conn-feedback"></span>\n        ';
511  } ;
512 __p += '\n        ';
513  if (authentication == ANONYMOUS) { ;
514 __p += '\n            <input type="pure-button button-primary" class="submit login-anon" value="' +
515 ((__t = (label_anon_login)) == null ? '' : __t) +
516 '"/>\n        ';
517  } ;
518 __p += '\n        ';
519  if (authentication == PREBIND) { ;
520 __p += '\n            <p>Disconnected.</p>\n        ';
521  } ;
522 __p += '\n    ';
523  } ;
524 __p += '\n</form>\n';
525
526 }
527 return __p
528 };
529
530 this["templates"]["login_tab"] = function(obj) {
531 obj || (obj = {});
532 var __t, __p = '', __e = _.escape;
533 with (obj) {
534 __p += '<li><a class="current" href="#login-dialog">' +
535 ((__t = (label_sign_in)) == null ? '' : __t) +
536 '</a></li>\n';
537
538 }
539 return __p
540 };
541
542 this["templates"]["message"] = function(obj) {
543 obj || (obj = {});
544 var __t, __p = '', __e = _.escape;
545 with (obj) {
546 __p += '<div class="chat-message ' +
547 ((__t = (extra_classes)) == null ? '' : __t) +
548 '" data-isodate="' +
549 ((__t = (isodate)) == null ? '' : __t) +
550 '" data-msgid="' +
551 ((__t = (msgid)) == null ? '' : __t) +
552 '">\n    <span class="chat-msg-author chat-msg-' +
553 ((__t = (sender)) == null ? '' : __t) +
554 '">' +
555 ((__t = (time)) == null ? '' : __t) +
556 ' ' +
557 ((__t = (username)) == null ? '' : __t) +
558 ':&nbsp;</span>\n    <span class="chat-msg-content">' +
559 ((__t = (message)) == null ? '' : __t) +
560 '</span>\n</div>\n';
561
562 }
563 return __p
564 };
565
566 this["templates"]["new_day"] = function(obj) {
567 obj || (obj = {});
568 var __t, __p = '', __e = _.escape;
569 with (obj) {
570 __p += '<time class="chat-info chat-date" data-isodate="' +
571 ((__t = (isodate)) == null ? '' : __t) +
572 '">' +
573 ((__t = (datestring)) == null ? '' : __t) +
574 '</time>\n';
575
576 }
577 return __p
578 };
579
580 this["templates"]["occupant"] = function(obj) {
581 obj || (obj = {});
582 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
583 function print() { __p += __j.call(arguments, '') }
584 with (obj) {
585 __p += '<li class="' +
586 ((__t = (role)) == null ? '' : __t) +
587 '"\n    ';
588  if (role === "moderator") { ;
589 __p += '\n       title="' +
590 ((__t = (desc_moderator)) == null ? '' : __t) +
591 '"\n    ';
592  } ;
593 __p += '\n    ';
594  if (role === "occupant") { ;
595 __p += '\n       title="' +
596 ((__t = (desc_occupant)) == null ? '' : __t) +
597 '"\n    ';
598  } ;
599 __p += '\n    ';
600  if (role === "visitor") { ;
601 __p += '\n       title="' +
602 ((__t = (desc_visitor)) == null ? '' : __t) +
603 '"\n    ';
604  } ;
605 __p += '\n>' +
606 ((__t = (nick)) == null ? '' : __t) +
607 '</li>\n';
608
609 }
610 return __p
611 };
612
613 this["templates"]["pending_contact"] = function(obj) {
614 obj || (obj = {});
615 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
616 function print() { __p += __j.call(arguments, '') }
617 with (obj) {
618
619  if (allow_chat_pending_contacts)  { ;
620 __p += '\n<a class="open-chat"href="#">\n';
621  } ;
622 __p += '\n<span class="pending-contact-name" title="Name: ' +
623 ((__t = (fullname)) == null ? '' : __t) +
624 '\nJID: ' +
625 ((__t = (jid)) == null ? '' : __t) +
626 '">' +
627 ((__t = (fullname)) == null ? '' : __t) +
628 '</span> \n';
629  if (allow_chat_pending_contacts)  { ;
630 __p += '\n</a>\n';
631  } ;
632 __p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
633 ((__t = (desc_remove)) == null ? '' : __t) +
634 '" href="#"></a>\n';
635
636 }
637 return __p
638 };
639
640 this["templates"]["pending_contacts"] = function(obj) {
641 obj || (obj = {});
642 var __t, __p = '', __e = _.escape;
643 with (obj) {
644 __p += '<dt class="roster-group" id="pending-xmpp-contacts"><a href="#" class="group-toggle icon-' +
645 ((__t = (toggle_state)) == null ? '' : __t) +
646 '" title="' +
647 ((__t = (desc_group_toggle)) == null ? '' : __t) +
648 '">' +
649 ((__t = (label_pending_contacts)) == null ? '' : __t) +
650 '</a></dt>\n';
651
652 }
653 return __p
654 };
655
656 this["templates"]["register_panel"] = function(obj) {
657 obj || (obj = {});
658 var __t, __p = '', __e = _.escape;
659 with (obj) {
660 __p += '<form id="converse-register" class="pure-form converse-form">\n    <span class="reg-feedback"></span>\n    <label>' +
661 ((__t = (label_domain)) == null ? '' : __t) +
662 '</label>\n    <input type="text" name="domain" placeholder="' +
663 ((__t = (domain_placeholder)) == null ? '' : __t) +
664 '">\n    <p class="form-help">' +
665 ((__t = (help_providers)) == null ? '' : __t) +
666 ' <a href="' +
667 ((__t = (href_providers)) == null ? '' : __t) +
668 '" class="url" target="_blank">' +
669 ((__t = (help_providers_link)) == null ? '' : __t) +
670 '</a>.</p>\n    <input class="pure-button button-primary" type="submit" value="' +
671 ((__t = (label_register)) == null ? '' : __t) +
672 '">\n</form>\n';
673
674 }
675 return __p
676 };
677
678 this["templates"]["register_tab"] = function(obj) {
679 obj || (obj = {});
680 var __t, __p = '', __e = _.escape;
681 with (obj) {
682 __p += '<li><a class="s" href="#register">' +
683 ((__t = (label_register)) == null ? '' : __t) +
684 '</a></li>\n';
685
686 }
687 return __p
688 };
689
690 this["templates"]["registration_form"] = function(obj) {
691 obj || (obj = {});
692 var __t, __p = '', __e = _.escape;
693 with (obj) {
694 __p += '<p class="provider-title">' +
695 ((__t = (domain)) == null ? '' : __t) +
696 '</p>\n<a href=\'https://xmpp.net/result.php?domain=' +
697 ((__t = (domain)) == null ? '' : __t) +
698 '&amp;type=client\'>\n    <img class="provider-score" src=\'https://xmpp.net/badge.php?domain=' +
699 ((__t = (domain)) == null ? '' : __t) +
700 '\' alt=\'xmpp.net score\' />\n</a>\n<p class="title">' +
701 ((__t = (title)) == null ? '' : __t) +
702 '</p>\n<p class="instructions">' +
703 ((__t = (instructions)) == null ? '' : __t) +
704 '</p>\n';
705
706 }
707 return __p
708 };
709
710 this["templates"]["registration_request"] = function(obj) {
711 obj || (obj = {});
712 var __t, __p = '', __e = _.escape;
713 with (obj) {
714 __p += '<span class="spinner login-submit"/>\n<p class="info">' +
715 ((__t = (info_message)) == null ? '' : __t) +
716 '</p>\n<button class="pure-button button-cancel hor_centered">' +
717 ((__t = (cancel)) == null ? '' : __t) +
718 '</button>\n';
719
720 }
721 return __p
722 };
723
724 this["templates"]["requesting_contact"] = function(obj) {
725 obj || (obj = {});
726 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
727 function print() { __p += __j.call(arguments, '') }
728 with (obj) {
729
730  if (allow_chat_pending_contacts)  { ;
731 __p += '\n<a class="open-chat"href="#">\n';
732  } ;
733 __p += '\n<span class="req-contact-name" title="Name: ' +
734 ((__t = (fullname)) == null ? '' : __t) +
735 '\nJID: ' +
736 ((__t = (jid)) == null ? '' : __t) +
737 '">' +
738 ((__t = (fullname)) == null ? '' : __t) +
739 '</span>\n';
740  if (allow_chat_pending_contacts)  { ;
741 __p += '\n</a>\n';
742  } ;
743 __p += '\n<span class="request-actions">\n    <a class="accept-xmpp-request icon-checkmark" title="' +
744 ((__t = (desc_accept)) == null ? '' : __t) +
745 '" href="#"></a>\n    <a class="decline-xmpp-request icon-close" title="' +
746 ((__t = (desc_decline)) == null ? '' : __t) +
747 '" href="#"></a>\n</span>\n';
748
749 }
750 return __p
751 };
752
753 this["templates"]["requesting_contacts"] = function(obj) {
754 obj || (obj = {});
755 var __t, __p = '', __e = _.escape;
756 with (obj) {
757 __p += '<dt class="roster-group" id="xmpp-contact-requests"><a href="#" class="group-toggle icon-' +
758 ((__t = (toggle_state)) == null ? '' : __t) +
759 '" title="' +
760 ((__t = (desc_group_toggle)) == null ? '' : __t) +
761 '">' +
762 ((__t = (label_contact_requests)) == null ? '' : __t) +
763 '</a></dt>\n';
764
765 }
766 return __p
767 };
768
769 this["templates"]["room_description"] = function(obj) {
770 obj || (obj = {});
771 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
772 function print() { __p += __j.call(arguments, '') }
773 with (obj) {
774 __p += '<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
775 ((__t = (label_desc)) == null ? '' : __t) +
776 '</strong> ' +
777 ((__t = (desc)) == null ? '' : __t) +
778 '</p>\n<p class="room-info"><strong>' +
779 ((__t = (label_occ)) == null ? '' : __t) +
780 '</strong> ' +
781 ((__t = (occ)) == null ? '' : __t) +
782 '</p>\n<p class="room-info"><strong>' +
783 ((__t = (label_features)) == null ? '' : __t) +
784 '</strong>\n    <ul>\n        ';
785  if (passwordprotected) { ;
786 __p += '\n        <li class="room-info locked">' +
787 ((__t = (label_requires_auth)) == null ? '' : __t) +
788 '</li>\n        ';
789  } ;
790 __p += '\n        ';
791  if (hidden) { ;
792 __p += '\n        <li class="room-info">' +
793 ((__t = (label_hidden)) == null ? '' : __t) +
794 '</li>\n        ';
795  } ;
796 __p += '\n        ';
797  if (membersonly) { ;
798 __p += '\n        <li class="room-info">' +
799 ((__t = (label_requires_invite)) == null ? '' : __t) +
800 '</li>\n        ';
801  } ;
802 __p += '\n        ';
803  if (moderated) { ;
804 __p += '\n        <li class="room-info">' +
805 ((__t = (label_moderated)) == null ? '' : __t) +
806 '</li>\n        ';
807  } ;
808 __p += '\n        ';
809  if (nonanonymous) { ;
810 __p += '\n        <li class="room-info">' +
811 ((__t = (label_non_anon)) == null ? '' : __t) +
812 '</li>\n        ';
813  } ;
814 __p += '\n        ';
815  if (open) { ;
816 __p += '\n        <li class="room-info">' +
817 ((__t = (label_open_room)) == null ? '' : __t) +
818 '</li>\n        ';
819  } ;
820 __p += '\n        ';
821  if (persistent) { ;
822 __p += '\n        <li class="room-info">' +
823 ((__t = (label_permanent_room)) == null ? '' : __t) +
824 '</li>\n        ';
825  } ;
826 __p += '\n        ';
827  if (publicroom) { ;
828 __p += '\n        <li class="room-info">' +
829 ((__t = (label_public)) == null ? '' : __t) +
830 '</li>\n        ';
831  } ;
832 __p += '\n        ';
833  if (semianonymous) { ;
834 __p += '\n        <li class="room-info">' +
835 ((__t = (label_semi_anon)) == null ? '' : __t) +
836 '</li>\n        ';
837  } ;
838 __p += '\n        ';
839  if (temporary) { ;
840 __p += '\n        <li class="room-info">' +
841 ((__t = (label_temp_room)) == null ? '' : __t) +
842 '</li>\n        ';
843  } ;
844 __p += '\n        ';
845  if (unmoderated) { ;
846 __p += '\n        <li class="room-info">' +
847 ((__t = (label_unmoderated)) == null ? '' : __t) +
848 '</li>\n        ';
849  } ;
850 __p += '\n    </ul>\n</p>\n</div>\n';
851
852 }
853 return __p
854 };
855
856 this["templates"]["room_item"] = function(obj) {
857 obj || (obj = {});
858 var __t, __p = '', __e = _.escape;
859 with (obj) {
860 __p += '<dd class="available-chatroom">\n<a class="open-room" data-room-jid="' +
861 ((__t = (jid)) == null ? '' : __t) +
862 '"\n   title="' +
863 ((__t = (open_title)) == null ? '' : __t) +
864 '" href="#">' +
865 ((__t = (_.escape(name))) == null ? '' : __t) +
866 '</a>\n<a class="room-info icon-room-info" data-room-jid="' +
867 ((__t = (jid)) == null ? '' : __t) +
868 '"\n   title="' +
869 ((__t = (info_title)) == null ? '' : __t) +
870 '" href="#">&nbsp;</a>\n</dd>\n';
871
872 }
873 return __p
874 };
875
876 this["templates"]["room_panel"] = function(obj) {
877 obj || (obj = {});
878 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
879 function print() { __p += __j.call(arguments, '') }
880 with (obj) {
881 __p += '<form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">\n    <fieldset>\n        <label>' +
882 ((__t = (label_room_name)) == null ? '' : __t) +
883 '</label>\n        <input type="text" name="chatroom" class="new-chatroom-name" placeholder="' +
884 ((__t = (label_room_name)) == null ? '' : __t) +
885 '"/>\n        <label>' +
886 ((__t = (label_nickname)) == null ? '' : __t) +
887 '</label> <input type="text" name="nick" class="new-chatroom-nick" placeholder="' +
888 ((__t = (label_nickname)) == null ? '' : __t) +
889 '"/>\n        <input type="submit" class="pure-button button-primary" name="join" value="' +
890 ((__t = (label_join)) == null ? '' : __t) +
891 '"/>\n    </fieldset>\n    <fieldset>\n        ';
892  if (server_input_type != 'hidden') { ;
893 __p += '\n            <label' +
894 ((__t = (server_label_global_attr)) == null ? '' : __t) +
895 '>' +
896 ((__t = (label_server)) == null ? '' : __t) +
897 '</label>\n        ';
898  } ;
899 __p += '\n        <input type="' +
900 ((__t = (server_input_type)) == null ? '' : __t) +
901 '" name="server" class="new-chatroom-server" placeholder="' +
902 ((__t = (label_server)) == null ? '' : __t) +
903 '"/>\n        <input type="button" class="pure-button button-secondary" name="show" id="show-rooms" value="' +
904 ((__t = (label_show_rooms)) == null ? '' : __t) +
905 '"/>\n    </fieldset>\n</form>\n<dl id="available-chatrooms"></dl>\n';
906
907 }
908 return __p
909 };
910
911 this["templates"]["roster"] = function(obj) {
912 obj || (obj = {});
913 var __t, __p = '', __e = _.escape;
914 with (obj) {
915 __p += '<form class="pure-form roster-filter-group input-button-group">\n    <input style="display: none;" class="roster-filter" placeholder="' +
916 ((__t = (placeholder)) == null ? '' : __t) +
917 '">\n    <select style="display: none;" class="filter-type">\n        <option value="contacts">' +
918 ((__t = (label_contacts)) == null ? '' : __t) +
919 '</option>\n        <option value="groups">' +
920 ((__t = (label_groups)) == null ? '' : __t) +
921 '</option>\n    </select>\n</form>\n';
922
923 }
924 return __p
925 };
926
927 this["templates"]["roster_item"] = function(obj) {
928 obj || (obj = {});
929 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
930 function print() { __p += __j.call(arguments, '') }
931 with (obj) {
932 __p += '<a class="open-chat" title="' +
933 ((__t = (title_fullname)) == null ? '' : __t) +
934 ': ' +
935 ((__t = (fullname)) == null ? '' : __t) +
936 '\nJID: ' +
937 ((__t = (jid)) == null ? '' : __t) +
938 '\n' +
939 ((__t = (desc_chat)) == null ? '' : __t) +
940 '" href="#"><span class="icon-' +
941 ((__t = (chat_status)) == null ? '' : __t) +
942 '" title="' +
943 ((__t = (desc_status)) == null ? '' : __t) +
944 '"></span>' +
945 ((__t = (fullname)) == null ? '' : __t) +
946 '</a>\n';
947  if (allow_contact_removal) { ;
948 __p += '\n<a class="remove-xmpp-contact icon-remove" title="' +
949 ((__t = (desc_remove)) == null ? '' : __t) +
950 '" href="#"></a>\n';
951  } ;
952 __p += '\n';
953
954 }
955 return __p
956 };
957
958 this["templates"]["search_contact"] = function(obj) {
959 obj || (obj = {});
960 var __t, __p = '', __e = _.escape;
961 with (obj) {
962 __p += '<li>\n    <form class="search-xmpp-contact">\n        <input type="text"\n            name="identifier"\n            class="username"\n            placeholder="' +
963 ((__t = (label_contact_name)) == null ? '' : __t) +
964 '"/>\n        <button type="submit">' +
965 ((__t = (label_search)) == null ? '' : __t) +
966 '</button>\n    </form>\n</li>\n';
967
968 }
969 return __p
970 };
971
972 this["templates"]["select_option"] = function(obj) {
973 obj || (obj = {});
974 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
975 function print() { __p += __j.call(arguments, '') }
976 with (obj) {
977 __p += '<option value="' +
978 ((__t = (value)) == null ? '' : __t) +
979 '" ';
980  if (selected) { ;
981 __p += ' selected="selected" ';
982  } ;
983 __p += ' >' +
984 ((__t = (label)) == null ? '' : __t) +
985 '</option>\n';
986
987 }
988 return __p
989 };
990
991 this["templates"]["status_option"] = function(obj) {
992 obj || (obj = {});
993 var __t, __p = '', __e = _.escape;
994 with (obj) {
995 __p += '<li>\n    <a href="#" class="' +
996 ((__t = ( value )) == null ? '' : __t) +
997 '" data-value="' +
998 ((__t = ( value )) == null ? '' : __t) +
999 '">\n        <span class="icon-' +
1000 ((__t = ( value )) == null ? '' : __t) +
1001 '"></span>\n        ' +
1002 ((__t = ( text )) == null ? '' : __t) +
1003 '\n    </a>\n</li>\n';
1004
1005 }
1006 return __p
1007 };
1008
1009 this["templates"]["toggle_chats"] = function(obj) {
1010 obj || (obj = {});
1011 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1012 function print() { __p += __j.call(arguments, '') }
1013 with (obj) {
1014 __p +=
1015 ((__t = (Minimized)) == null ? '' : __t) +
1016 ' <span id="minimized-count">(' +
1017 ((__t = (num_minimized)) == null ? '' : __t) +
1018 ')</span>\n<span class="unread-message-count"\n    ';
1019  if (!num_unread) { ;
1020 __p += ' style="display: none" ';
1021  } ;
1022 __p += '\n    href="#">' +
1023 ((__t = (num_unread)) == null ? '' : __t) +
1024 '</span>\n';
1025
1026 }
1027 return __p
1028 };
1029
1030 this["templates"]["toolbar"] = function(obj) {
1031 obj || (obj = {});
1032 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1033 function print() { __p += __j.call(arguments, '') }
1034 with (obj) {
1035
1036  if (show_emoticons)  { ;
1037 __p += '\n    <li class="toggle-smiley icon-happy" title="' +
1038 ((__t = (label_insert_smiley)) == null ? '' : __t) +
1039 '">\n        <ul>\n            <li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>\n            <li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>\n            <li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>\n            <li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>\n            <li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>\n            <li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>\n            <li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>\n            <li><a class="icon-wondering" href="#" data-emoticon=":\\"></a></li>\n            <li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>\n            <li><a class="icon-sad" href="#" data-emoticon=":("></a></li>\n            <li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>\n            <li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>\n            <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>\n        </ul>\n    </li>\n';
1040  } ;
1041 __p += '\n';
1042  if (show_call_button)  { ;
1043 __p += '\n<li class="toggle-call"><a class="icon-phone" title="' +
1044 ((__t = (label_start_call)) == null ? '' : __t) +
1045 '"></a></li>\n';
1046  } ;
1047 __p += '\n';
1048  if (show_occupants_toggle)  { ;
1049 __p += '\n<li class="toggle-occupants"><a class="icon-hide-users" title="' +
1050 ((__t = (label_hide_occupants)) == null ? '' : __t) +
1051 '"></a></li>\n';
1052  } ;
1053 __p += '\n';
1054  if (show_clear_button)  { ;
1055 __p += '\n<li class="toggle-clear"><a class="icon-remove" title="' +
1056 ((__t = (label_clear)) == null ? '' : __t) +
1057 '"></a></li>\n';
1058  } ;
1059 __p += '\n';
1060  if (allow_otr)  { ;
1061 __p += '\n    <li class="toggle-otr ' +
1062 ((__t = (otr_status_class)) == null ? '' : __t) +
1063 '" title="' +
1064 ((__t = (otr_tooltip)) == null ? '' : __t) +
1065 '">\n        <span class="chat-toolbar-text">' +
1066 ((__t = (otr_translated_status)) == null ? '' : __t) +
1067 '</span>\n        ';
1068  if (otr_status == UNENCRYPTED) { ;
1069 __p += '\n            <span class="icon-unlocked"></span>\n        ';
1070  } ;
1071 __p += '\n        ';
1072  if (otr_status == UNVERIFIED) { ;
1073 __p += '\n            <span class="icon-lock"></span>\n        ';
1074  } ;
1075 __p += '\n        ';
1076  if (otr_status == VERIFIED) { ;
1077 __p += '\n            <span class="icon-lock"></span>\n        ';
1078  } ;
1079 __p += '\n        ';
1080  if (otr_status == FINISHED) { ;
1081 __p += '\n            <span class="icon-unlocked"></span>\n        ';
1082  } ;
1083 __p += '\n        <ul>\n            ';
1084  if (otr_status == UNENCRYPTED) { ;
1085 __p += '\n               <li><a class="start-otr" href="#">' +
1086 ((__t = (label_start_encrypted_conversation)) == null ? '' : __t) +
1087 '</a></li>\n            ';
1088  } ;
1089 __p += '\n            ';
1090  if (otr_status != UNENCRYPTED) { ;
1091 __p += '\n               <li><a class="start-otr" href="#">' +
1092 ((__t = (label_refresh_encrypted_conversation)) == null ? '' : __t) +
1093 '</a></li>\n               <li><a class="end-otr" href="#">' +
1094 ((__t = (label_end_encrypted_conversation)) == null ? '' : __t) +
1095 '</a></li>\n               <li><a class="auth-otr" data-scheme="smp" href="#">' +
1096 ((__t = (label_verify_with_smp)) == null ? '' : __t) +
1097 '</a></li>\n            ';
1098  } ;
1099 __p += '\n            ';
1100  if (otr_status == UNVERIFIED) { ;
1101 __p += '\n               <li><a class="auth-otr" data-scheme="fingerprint" href="#">' +
1102 ((__t = (label_verify_with_fingerprints)) == null ? '' : __t) +
1103 '</a></li>\n            ';
1104  } ;
1105 __p += '\n            <li><a href="http://www.cypherpunks.ca/otr/help/3.2.0/levels.php" target="_blank">' +
1106 ((__t = (label_whats_this)) == null ? '' : __t) +
1107 '</a></li>\n        </ul>\n    </li>\n';
1108  } ;
1109 __p += '\n';
1110
1111 }
1112 return __p
1113 };
1114
1115 this["templates"]["trimmed_chat"] = function(obj) {
1116 obj || (obj = {});
1117 var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
1118 function print() { __p += __j.call(arguments, '') }
1119 with (obj) {
1120 __p += '<a class="chatbox-btn close-chatbox-button icon-close"></a>\n<a class="chat-head-message-count" \n    ';
1121  if (!num_unread) { ;
1122 __p += ' style="display: none" ';
1123  } ;
1124 __p += '\n    href="#">' +
1125 ((__t = (num_unread)) == null ? '' : __t) +
1126 '</a>\n<a href="#" class="restore-chat" title="' +
1127 ((__t = (tooltip)) == null ? '' : __t) +
1128 '">\n    ' +
1129 ((__t = ( title )) == null ? '' : __t) +
1130 '\n</a>\n';
1131
1132 }
1133 return __p
1134 };
1135
1136 this["templates"]["vcard"] = function(obj) {
1137 obj || (obj = {});
1138 var __t, __p = '', __e = _.escape;
1139 with (obj) {
1140 __p += '<form class="pure-form converse-form vcard-info">\n    <fieldset>\n        <legend>The VCard info gets rendered here</legend>\n        <label>Full name:</label>\n        ' +
1141 ((__t = (fullname)) == null ? '' : __t) +
1142 '\n        <label>URL:</label>\n        ' +
1143 ((__t = (url)) == null ? '' : __t) +
1144 '\n    </fieldset>\n    <fieldset>\n        <input type="button" class="pure-button button-cancel" value="' +
1145 ((__t = (label_return)) == null ? '' : __t) +
1146 '"/>\n    </fieldset>\n</form>\n';
1147
1148 }
1149 return __p
1150 };