diff --git a/src/mibew/js/compiled/default/handlebars_helpers.js b/src/mibew/js/compiled/default/handlebars_helpers.js index 3ecc1729..5c05a941 100644 --- a/src/mibew/js/compiled/default/handlebars_helpers.js +++ b/src/mibew/js/compiled/default/handlebars_helpers.js @@ -6,5 +6,5 @@ http://www.apache.org/licenses/LICENSE-2.0 */ (function(e,b){b.registerHelper("apply",function(a,c){var f=a,e=/^[0-9A-z_]+$/;c=c.split(/\s*,\s*/);for(var d in c)if(c.hasOwnProperty(d)&&e.test(c[d])){if("function"!=typeof b.helpers[c[d]])throw Error("Unregistered helper '"+c[d]+"'!");f=b.helpers[c[d]](f).toString()}return new b.SafeString(f)});b.registerHelper("allowTags",function(a){a=a.replace(/<(span|strong)>(.*?)<\/\1>/g,"<$1>$2");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2'); -return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("L10n",function(a){return e.Localization.get(a)|| +return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("l10n",function(a){return e.Localization.get(a)|| ""})})(Mibew,Handlebars); diff --git a/src/mibew/js/compiled/default_app.js b/src/mibew/js/compiled/default_app.js index 08d08445..ac80e185 100644 --- a/src/mibew/js/compiled/default_app.js +++ b/src/mibew/js/compiled/default_app.js @@ -12,7 +12,7 @@ var Mibew={};(function(a,b){b.Marionette.TemplateCache.prototype.compileTemplate http://www.apache.org/licenses/LICENSE-2.0 */ (function(e,b){b.registerHelper("apply",function(a,c){var f=a,e=/^[0-9A-z_]+$/;c=c.split(/\s*,\s*/);for(var d in c)if(c.hasOwnProperty(d)&&e.test(c[d])){if("function"!=typeof b.helpers[c[d]])throw Error("Unregistered helper '"+c[d]+"'!");f=b.helpers[c[d]](f).toString()}return new b.SafeString(f)});b.registerHelper("allowTags",function(a){a=a.replace(/<(span|strong)>(.*?)<\/\1>/g,"<$1>$2");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2'); -return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("L10n",function(a){return e.Localization.get(a)|| +return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("l10n",function(a){return e.Localization.get(a)|| ""})})(Mibew,Handlebars); /* Copyright 2005-2013 the original author or authors. diff --git a/src/mibew/js/source/default/handlebars_helpers.js b/src/mibew/js/source/default/handlebars_helpers.js index cd318c1a..49e6c598 100644 --- a/src/mibew/js/source/default/handlebars_helpers.js +++ b/src/mibew/js/source/default/handlebars_helpers.js @@ -103,11 +103,11 @@ }); /** - * Register 't' Handlebars helper + * Register 'l10n' Handlebars helper * * This helper returns translated string with specified key */ - Handlebars.registerHelper('L10n', function(key) { + Handlebars.registerHelper('l10n', function(key) { return (Mibew.Localization.get(key) || ''); }); })(Mibew, Handlebars); \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars index 48912a68..5ec63a6b 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars index ee01aa8d..e890e10d 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars index 3208d443..bb996021 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars @@ -1,3 +1,3 @@ {{#if user.canPost}} -
+
{{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars index f7270917..aafc832d 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars index ad823d5d..61afda95 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars index 4b059ca8..00d05321 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars @@ -1,5 +1,5 @@ {{#if enabled}} -
+
{{else}} -
+
{{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars index 3b7a3b01..f8f738f0 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars @@ -1,12 +1,12 @@ {{#if user.canChangeName}} - {{L10n "chat.client.name"}} + {{l10n "chat.client.name"}} {{#if nameInput}}
- + {{else}} - {{user.name}} - + {{user.name}} + {{/if}} {{else}} -{{L10n "chat.client.name"}} {{user.name}} +{{l10n "chat.client.name"}} {{user.name}} {{/if}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars index d2d48d61..e36934f9 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars @@ -49,4 +49,4 @@
{{! Footer links}} - \ No newline at end of file + \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars index 2aff7496..e4a9fb2e 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars @@ -12,14 +12,14 @@
{{#if user.isAgent}} {{/if}}
- {{L10n "chat.window.send_message_short_and_shortcut"}} + {{l10n "chat.window.send_message_short_and_shortcut"}} {{/if}} diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars index 91728f51..fe60281f 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars @@ -1 +1 @@ -{{L10n "typing.remote"}} \ No newline at end of file +{{l10n "typing.remote"}} \ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars index cdbdffc3..6cb49ed6 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars @@ -1,6 +1,6 @@
- - {{L10n + + {{l10n
-
{{L10n "leavemessage.descr"}}
\ No newline at end of file +
{{l10n "leavemessage.descr"}}
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars index 30b1127d..c41e3fcd 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars @@ -8,16 +8,16 @@ - + - + {{#if groups}} - + - + {{/if}} - + @@ -46,7 +46,7 @@ {{/if}}
{{L10n "form.field.email"}}:{{l10n "form.field.email"}}:
{{L10n "form.field.name"}}:{{l10n "form.field.name"}}:
{{L10n "form.field.department"}}{{l10n "form.field.department"}}
{{L10n "form.field.department.description"}}{{l10n "form.field.department.description"}} {{#each groups}}{{#if this.selected}}{{this.description}}{{/if}}{{/each}}
{{L10n "form.field.message"}}:{{l10n "form.field.message"}}:
- {{L10n "mailthread.perform"}} + {{l10n "mailthread.perform"}}
 
Loading...
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars index 77406fc9..30e87801 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars @@ -1,6 +1,6 @@
- - {{L10n + + {{l10n
-
{{L10n "leavemessage.sent.message"}}
\ No newline at end of file +
{{l10n "leavemessage.sent.message"}}
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars index e3ffa2d4..fabb3134 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars @@ -12,7 +12,7 @@ {{#if groups}} - + - + {{/if}} - + {{#if showEmail}} - + {{/if}} {{#if showMessage}} - + {{/if}}
{{L10n "form.field.department"}}{{l10n "form.field.department"}}
{{L10n "form.field.department.description"}}{{l10n "form.field.department.description"}} {{#each groups}}{{#if this.selected}}{{this.description}}{{/if}}{{/each}}
{{L10n "presurvey.name"}}{{l10n "presurvey.name"}}
{{L10n "presurvey.mail"}}{{l10n "presurvey.mail"}}
{{L10n "presurvey.question"}}{{l10n "presurvey.question"}}
- {{L10n "presurvey.submit"}} + {{l10n "presurvey.submit"}}
 
Loading...
\ No newline at end of file diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars b/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars index f2f9abd5..3218043b 100644 --- a/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars +++ b/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars @@ -28,9 +28,9 @@
- {{L10n + {{l10n
-
{{L10n "presurvey.intro"}}
+
{{l10n "presurvey.intro"}}
diff --git a/src/mibew/styles/dialogs/default/js/compiled/templates.js b/src/mibew/styles/dialogs/default/js/compiled/templates.js index 19bc03b4..0fc3aa26 100644 --- a/src/mibew/styles/dialogs/default/js/compiled/templates.js +++ b/src/mibew/styles/dialogs/default/js/compiled/templates.js @@ -5,61 +5,61 @@ http://www.apache.org/licenses/LICENSE-2.0 */ (function(){var r=Handlebars.template,s=Handlebars.templates=Handlebars.templates||{};s.chat_avatar=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h=this.escapeExpression;return(a=e["if"].call(b,b.imageLink,{hash:{},inverse:this.program(3,function(){return'
'},c),fn:this.program(1,function(a,b){var d,c;d=''},c),data:c}))||0===a?a:""});s.chat_controls_close=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_history=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers); -c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_redirect=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;return(a=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canPost),{hash:{},inverse:this.noop, -fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),data:c}))||0===a?a:""});s.chat_controls_refresh=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_secure_mode=r(function(a,b,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,a.helpers);return'
'});s.chat_controls_send_mail=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_sound=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h=e.helperMissing,q=this.escapeExpression;return(a=e["if"].call(b,b.enabled,{hash:{},inverse:this.program(3,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),data:c}))||0===a?a:""});s.chat_controls_user_name=r(function(a,b,e,d,c){function h(a,b){var m,f,d;m=""+('\n
\n \n '}function q(a,d){var m,f,b;b={hash:{},data:d};m='\n '+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+'\n \n '}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var p,t="function",g=this.escapeExpression,k=e.helperMissing,j=this;return(a=e["if"].call(b,(p=b.user,null==p|| -!1===p?p:p.canChangeName),{hash:{},inverse:j.program(6,function(a,b){var m,f;m={hash:{},data:b};return m="\n"+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.name",m):k.call(a,"L10n","chat.client.name",m)))+" "+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+"\n")},c),fn:j.program(1,function(a,b){var m,f;m={hash:{},data:b};m='\n '+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.name",m):k.call(a,"L10n","chat.client.name",m)))+"\n "); +h(c)+'" border="0" alt="" />'},c),data:c}))||0===a?a:""});s.chat_controls_close=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_history=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers); +c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_redirect=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;return(a=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canPost),{hash:{},inverse:this.noop, +fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),data:c}))||0===a?a:""});s.chat_controls_refresh=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_secure_mode=r(function(a,b,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,a.helpers);return'
'});s.chat_controls_send_mail=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='
')});s.chat_controls_sound=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h=e.helperMissing,q=this.escapeExpression;return(a=e["if"].call(b,b.enabled,{hash:{},inverse:this.program(3,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n
\n')},c),data:c}))||0===a?a:""});s.chat_controls_user_name=r(function(a,b,e,d,c){function h(a,b){var m,f,d;m=""+('\n
\n \n '}function q(a,d){var m,f,b;b={hash:{},data:d};m='\n '+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+'\n \n '}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var p,t="function",g=this.escapeExpression,k=e.helperMissing,j=this;return(a=e["if"].call(b,(p=b.user,null==p|| +!1===p?p:p.canChangeName),{hash:{},inverse:j.program(6,function(a,b){var m,f;m={hash:{},data:b};return m="\n"+(g((f=e.l10n||a.l10n,f?f.call(a,"chat.client.name",m):k.call(a,"l10n","chat.client.name",m)))+" "+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+"\n")},c),fn:j.program(1,function(a,b){var m,f;m={hash:{},data:b};m='\n '+(g((f=e.l10n||a.l10n,f?f.call(a,"chat.client.name",m):k.call(a,"l10n","chat.client.name",m)))+"\n "); if((f=e["if"].call(a,a.nameInput,{hash:{},inverse:j.program(4,q,b),fn:j.program(2,h,b),data:b}))||0===f)m+=f;return m+="\n"},c),data:c}))||0===a?a:""});s.chat_layout=r(function(a,b,e,d,c){function h(a){var f;return a=""+("\n \n \n \n ')}function q(a){var f;return a=""+('\n \n ')}function p(a){var f;return a=""+("\n \n \n \n ')}function t(a){var f;return a=""+('\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers); c=c||{};var g,k,j="function",l=this.escapeExpression,n=this;d=e.helperMissing;a='\n
\n \n
\n\n\n
\n
\n \n
\n
\n
\n\n\n
\n
\n '; -if((k=e.unless.call(b,(g=b.user,null==g||!1===g?g:g.isAgent),{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n
\n '},c),data:c}))||0===k)a+=k;c={hash:{},data:c};return a=a+'\n \n
\n \n
\n
\n
\n\n\n
\n\n\n')});s.chat_message=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=this.escapeExpression,p=e.helperMissing;a={hash:{},data:c};a=""+(q((h=e.formatTime||b.formatTime,h?h.call(b,b.created,a):p.call(b,"formatTime",b.created,a)))+" \n");if((h=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1, +if((k=e.unless.call(b,(g=b.user,null==g||!1===g?g:g.isAgent),{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n
\n '},c),data:c}))||0===k)a+=k;c={hash:{},data:c};return a=a+'\n \n
\n \n
\n \n\n\n\n
\n\n\n')});s.chat_message=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=this.escapeExpression,p=e.helperMissing;a={hash:{},data:c};a=""+(q((h=e.formatTime||b.formatTime,h?h.call(b,b.created,a):p.call(b,"formatTime",b.created,a)))+" \n");if((h=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1, function(a,b){var d,c;d="";(c=e.name)?c=c.call(a,{hash:{},data:b}):(c=a.name,c="function"===typeof c?c.apply(a):c);return d+=q(c)+": "},c),data:c}))||0===h)a+=h;a+="\n";if((h=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a, b){var d,c;c={hash:{},data:b};return q((d=e.apply||a.apply,d?d.call(a,a.message,"urlReplace, nl2br",c):p.call(a,"apply",a.message,"urlReplace, nl2br",c)))},c),fn:this.program(3,function(a,b){var d,c;c={hash:{},data:b};return q((d=e.apply||a.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",c):p.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",c)))},c),data:c}))||0===h)a+=h;return a+="
"});s.chat_message_form=r(function(a,b,e,d,c){function h(a,b){var d,f;d={hash:{},data:b}; -d='\n \n "}function q(a){var d;return a=""+("\n \n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var p,r="function",g=this.escapeExpression,k=e.helperMissing,j=this;a='
\n';if((d=e["if"].call(b,(p=b.user,null==p||!1===p?p:p.canPost),{hash:{},inverse:j.noop,fn:j.program(1,function(){return'\n
\n \n
\n'}, c),data:c}))||0===d)a+=d;a+='\n
\n\n
\n';if((d=e["if"].call(b,(p=b.user,null==p||!1===p?p:p.canPost),{hash:{},inverse:j.noop,fn:j.program(3,function(a,d){var b,f,c;b='\n
\n
\n ';if((c=e["if"].call(a,(f=a.user,null==f||!1===f?f:f.isAgent),{hash:{},inverse:j.noop,fn:j.program(4,h,d),data:d}))||0===c)b+=c;c={hash:{},data:d};b=b+'\n
\n ');c={hash:{},data:d};return b+=g((f=e.L10n||a.L10n,f?f.call(a,"chat.window.send_message_short_and_shortcut",c):k.call(a,"L10n","chat.window.send_message_short_and_shortcut",c)))+"\n
\n"},c),data:c}))||0===d)a+=d;return a+'\n
\n
'});s.chat_status_base=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};a=this.escapeExpression; +(g((f=e.l10n||a.l10n,f?f.call(a,"chat.window.send_message",c):k.call(a,"l10n","chat.window.send_message",c)))+'">');c={hash:{},data:d};return b+=g((f=e.l10n||a.l10n,f?f.call(a,"chat.window.send_message_short_and_shortcut",c):k.call(a,"l10n","chat.window.send_message_short_and_shortcut",c)))+"\n \n"},c),data:c}))||0===d)a+=d;return a+'\n\n
'});s.chat_status_base=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};a=this.escapeExpression; (e=e.title)?e=e.call(b,{hash:{},data:c}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a(e)});s.chat_status_message=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};a=this.escapeExpression;(e=e.message)?e=e.call(b,{hash:{},data:c}):(e=b.message,e="function"===typeof e?e.apply(b):e);return a(e)});s.chat_status_typing=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression; -c={hash:{},data:c};return d((h=e.L10n||b.L10n,h?h.call(b,"typing.remote",c):a.call(b,"L10n","typing.remote",c)))});s.invitation_layout=r(function(a,b,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,a.helpers);return'
'});s.leave_message_description=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;d={hash:{},data:c};a='
\n \n ');d={hash:{},data:c};a+=p((h=e.L10n||b.L10n,h?h.call(b,\n \n
\n
';d={hash:{},data:c};return a+=p((h=e.L10n||b.L10n,h?h.call(b,"leavemessage.descr", -d):q.call(b,"L10n","leavemessage.descr",d)))+"
"});s.leave_message_form=r(function(a,b,e,d,c){function h(a,d){var b,c;b=''}function q(a,d){var b,c,m;b=""+('\n \n "}function p(){return'selected="selected"'}function r(){return" (offline)"} function g(b,a){var d;return(d=e["if"].call(b,b.selected,{hash:{},inverse:m.noop,fn:m.program(15,k,a),data:a}))||0===d?d:""}function k(b){var a;return n((a=b.description,typeof a===l?a.apply(b):a))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var j,l="function",n=this.escapeExpression,m=this,f=e.helperMissing;a=""+('
\n \n \n \n \n ';if((d=e.unless.call(b,b.showEmail,{hash:{},inverse:m.noop,fn:m.program(1,function(b,a){var d,c;d=''},c),data:c}))||0===d)a+=d;a+="\n ";if((d=e.unless.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(3,function(b,a){var d;return(d=e["if"].call(b,b.groupId,{hash:{},inverse:m.noop,fn:m.program(4,h,a),data:a}))||0===d?d:""},c),data:c}))||0===d)a+=d;a+="\n ";if((d=e.unless.call(b,b.showMessage,{hash:{},inverse:m.noop,fn:m.program(6,function(b,a){var d,c;d=''},c),data:c}))||0===d)a+=d;a+='\n\n
\n\n \n ';if((d=e["if"].call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(8,function(b,a){var d,c,h;h={hash:{},data:a};d="\n \n \n \n \n \n \n \n \n "},c),data:c}))||0===d)a+=d;d={hash:{},data:c};a=a+"\n \n \n \n \n ";if((d=e["if"].call(b,b.showEmail,{hash:{},inverse:m.noop,fn:m.program(19,function(b,a){var d,c;d={hash:{},data:a};d="\n \n \n \n \n '}, -c),data:c}))||0===d)a+=d;a+="\n ";if((d=e["if"].call(b,b.showMessage,{hash:{},inverse:m.noop,fn:m.program(21,function(b,a){var d,c;d={hash:{},data:a};d="\n \n \n \n \n "},c),data:c}))||0===d)a+=d;a+='\n
"+(n((c=e.L10n||b.L10n,c?c.call(b,"form.field.department",h):f.call(b,"L10n","form.field.department",h)))+'\n \n
";h={hash:{},data:a};d+=n((c=e.L10n||b.L10n,c?c.call(b,"form.field.department.description",h):f.call(b,"L10n","form.field.department.description",h)))+'';if((h=e.each.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(14,g,a),data:a}))||0===h)d+= -h;return d+="
"+(n((j=e.L10n||b.L10n,j?j.call(b,"presurvey.name",d):f.call(b,"L10n","presurvey.name",d)))+'
"+(n((c=e.L10n||b.L10n,c?c.call(b,"presurvey.mail",d):f.call(b,"L10n","presurvey.mail",d)))+'
"+(n((c=e.L10n||b.L10n,c?c.call(b,"presurvey.question",d):f.call(b,"L10n","presurvey.question",d)))+'
\n ';d={hash:{},data:c};return a+=n((j=e.L10n||b.L10n,j?j.call(b,"presurvey.submit",d):f.call(b,"L10n","presurvey.submit",d)))+'\n
 
\n
\n
Loading...
'});s.survey_layout= +(c=e.message)?c=c.call(b,{hash:{},data:a}):(c=b.message,c=typeof c===l?c.apply(b):c);return d+=n(c)+'"/>'},c),data:c}))||0===d)a+=d;a+='\n\n
\n\n \n ';if((d=e["if"].call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(8,function(b,a){var d,c,h;h={hash:{},data:a};d="\n \n \n \n \n \n \n \n \n "},c),data:c}))||0===d)a+=d;d={hash:{},data:c};a=a+"\n \n \n \n \n ";if((d=e["if"].call(b,b.showEmail,{hash:{},inverse:m.noop,fn:m.program(19,function(b,a){var d,c;d={hash:{},data:a};d="\n \n \n \n \n '}, +c),data:c}))||0===d)a+=d;a+="\n ";if((d=e["if"].call(b,b.showMessage,{hash:{},inverse:m.noop,fn:m.program(21,function(b,a){var d,c;d={hash:{},data:a};d="\n \n \n \n \n "},c),data:c}))||0===d)a+=d;a+='\n
"+(n((c=e.l10n||b.l10n,c?c.call(b,"form.field.department",h):f.call(b,"l10n","form.field.department",h)))+'\n \n
";h={hash:{},data:a};d+=n((c=e.l10n||b.l10n,c?c.call(b,"form.field.department.description",h):f.call(b,"l10n","form.field.department.description",h)))+'';if((h=e.each.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(14,g,a),data:a}))||0===h)d+= +h;return d+="
"+(n((j=e.l10n||b.l10n,j?j.call(b,"presurvey.name",d):f.call(b,"l10n","presurvey.name",d)))+'
"+(n((c=e.l10n||b.l10n,c?c.call(b,"presurvey.mail",d):f.call(b,"l10n","presurvey.mail",d)))+'
"+(n((c=e.l10n||b.l10n,c?c.call(b,"presurvey.question",d):f.call(b,"l10n","presurvey.question",d)))+'
\n ';d={hash:{},data:c};return a+=n((j=e.l10n||b.l10n,j?j.call(b,"presurvey.submit",d):f.call(b,"l10n","presurvey.submit",d)))+'\n
 
\n\n
Loading...
'});s.survey_layout= r(function(a,b,e,d,c){function h(b){var a;return b=""+("\n \n \n \n ')}function q(a){var b;return a= ""+('\n \n ')}function p(b){var a;return b=""+("\n \n \n \n ')}function r(a){var b;return a=""+('\n \n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var g,k,j="function",l=this.escapeExpression,n=this;d=e.helperMissing;a='\n
\n \n
\n\n\n
\n
\n
\n ';k={hash:{},data:c};a+=l((g=e.L10n||b.L10n,g?g.call(b,\n
\n
';k={hash:{},data:c};return a+=l((g=e.L10n||b.L10n,g?g.call(b,"presurvey.intro", -k):d.call(b,"L10n","presurvey.intro",k)))+'
\n
\n
\n\n\n
'})})(); +k={hash:{},data:c};a+=l((g=e.l10n||b.l10n,g?g.call(b,"leavemessage.close",k):d.call(b,"l10n","leavemessage.close",k)))+'">';k={hash:{},data:c};a+=l((g=e.l10n||b.l10n,g?g.call(b,\n \n
';k={hash:{},data:c};return a+=l((g=e.l10n||b.l10n,g?g.call(b,"presurvey.intro", +k):d.call(b,"l10n","presurvey.intro",k)))+'
\n \n\n\n\n
'})})(); diff --git a/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js b/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js index 4c346b2f..b13adce0 100644 --- a/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js +++ b/src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js @@ -4,31 +4,31 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ -(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.visitor=k(function(b,c,e,a,d){function f(){return"-"}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var g,h=e.helperMissing,j=this.escapeExpression;b='\n ';if((a=e.unless.call(c,c.invitationInfo,{hash:{},inverse:this.program(3,function(a,b){var c;(c=e.userName)?c=c.call(a,{hash:{},data:b}):(c=a.userName,c="function"===typeof c?c.apply(a):c);return j(c)},d),fn:this.program(1, -function(a,b){var c,d;c={hash:{},data:b};c='');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=j(d)+""},d),data:d}))||0===a)b+=a;g={hash:{},data:d};b=b+'\n\n\n
\n
\n
\n
\n\n');if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return j(b)},d),fn:this.program(5,function(a,b){var c,d;c=''; -(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return c+=j(d)+""},d),data:d}))||0===a)b+=a;b+='\n\n\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(9,function(a){var b;return j((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('')},d),data:d}))||0===a)b+=a;b+='\n';(a=e.invitations)?a=a.call(c,{hash:{},data:d}):(a=c.invitations,a="function"===typeof a?a.apply(c):a);b+=j(a)+" / ";(a=e.chats)?a=a.call(c,{hash:{},data:d}):(a=c.chats,a="function"===typeof a?a.apply(c):a);b+=j(a)+'\n';(a=e.userAgent)?a=a.call(c,{hash:{},data:d}):(a=c.userAgent,a="function"===typeof a?a.apply(c):a);return b+=j(a)+""}); -l.queued_thread=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f=e.helperMissing,g=this.escapeExpression;b='\n
';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,b){var c,d;c={hash:{},data:b};return c=""+(g((d=e.L10n||a.L10n,d?d.call(a,"chat.client.spam.prefix",c):f.call(a,"L10n","chat.client.spam.prefix",c)))+" ")},d),data:d}))||0===a)b+=a;(a=e.userName)?a=a.call(c,{hash:{},data:d}):(a=c.userName,a="function"=== -typeof a?a.apply(c):a);b+=g(a)+"
\n ";if((a=e["if"].call(c,c.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,d;c='
';(d=e.firstMessagePreview)?d=d.call(a,{hash:{},data:b}):(d=a.firstMessagePreview,d="function"===typeof d?d.apply(a):d);return c+=g(d)+"
"},d),data:d}))||0=== -a)b+=a;b+='\n\n\n
\n ';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,b){var c,d;c={hash:{},data:b};return c='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c, -c.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,b){var c,d;c={hash:{},data:b};return c='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,b){var c,d;c={hash:{},data:b};return c='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,b){var c,d;c={hash:{},data:b};return c='\n
\n ')},d),data:d}))||0=== -a)b+=a;b+='\n
\n
\n\n';if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(19,function(a,b){var c;(c=e.remote)?c=c.call(a,{hash:{},data:b}):(c=a.remote,c="function"===typeof c?c.apply(a):c);return g(c)},d),fn:this.program(17,function(a,c){var b,d;b='';(d=e.remote)?d=d.call(a,{hash:{},data:c}):(d=a.remote,d="function"===typeof d?d.apply(a): -d);return b+=g(d)+""},d),data:d}))||0===a)b+=a;b+='\n';(a=e.stateDesc)?a=a.call(c,{hash:{},data:d}):(a=c.stateDesc,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n';(a=e.agentName)?a=a.call(c,{hash:{},data:d}):(a=c.agentName,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n\n';if((a=e.unless.call(c,c.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,c){var b,d;b=''},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.program(27,function(a,c){var b;(b=e.userAgent)?b= -b.call(a,{hash:{},data:c}):(b=a.userAgent,b="function"===typeof b?b.apply(a):b);return g(b)},d),fn:this.program(25,function(a){var b;return g((b=(b=a.ban,null==b||!1===b?b:b.reason),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)b+=a;return b+""});l.no_visitors=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c=''+(a((f=e.L10n||c.L10n, -f?f.call(c,"visitors.no_visitors",d):b.call(c,"L10n","visitors.no_visitors",d)))+"")});l.no_threads=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c=''+(a((f=e.L10n||c.L10n,f?f.call(c,"clients.no_clients",d):b.call(c,"L10n","clients.no_clients",d)))+"")});l.status_panel=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e, -b.helpers);d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;b='
';(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a="function"===typeof a?a.apply(c):a);b+=h(a);if((f=e["if"].call(c,(a=c.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(3,function(a,b){var c,d;d={hash:{},data:b};return h((c=e.L10n||a.L10n,c?c.call(a,"pending.status.online",d):g.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,b){var c,d;d={hash:{},data:b};return h((c= -e.L10n||a.L10n,c?c.call(a,"pending.status.away",d):g.call(a,"L10n","pending.status.away",d)))},d),data:d}))||0===f)b+=f;b+='
"});l.threads_collection=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d};b='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
'+(h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.name",a):g.call(c,"L10n","pending.table.head.name", -a)))+"");a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.actions",a):g.call(c,"L10n","pending.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.contactid",a):g.call(c,"L10n","pending.table.head.contactid",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.state",a):g.call(c,"L10n","pending.table.head.state",a)))+"";a={hash:{},data:d}; -b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.operator",a):g.call(c,"L10n","pending.table.head.operator",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.total",a):g.call(c,"L10n","pending.table.head.total",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.waittime",a):g.call(c,"L10n","pending.table.head.waittime",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n||c.L10n,f?f.call(c,"pending.table.head.etc", -a):g.call(c,"L10n","pending.table.head.etc",a)))+'
'});l.visitors_collection=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d};b='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
'+(h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.name",a):g.call(c,"L10n","visitors.table.head.name", -a)))+"");a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.actions",a):g.call(c,"L10n","visitors.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.contactid",a):g.call(c,"L10n","visitors.table.head.contactid",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):g.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+""; -a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):g.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.invited.by",a):g.call(c,"L10n","visitors.table.head.invited.by",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):g.call(c,"L10n","visitors.table.head.invitationtime",a)))+"";a= -{hash:{},data:d};b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.invitations",a):g.call(c,"L10n","visitors.table.head.invitations",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n||c.L10n,f?f.call(c,"visitors.table.head.etc",a):g.call(c,"L10n","visitors.table.head.etc",a)))+'
'});l.agent=k(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f=e.helperMissing,g=this.escapeExpression; -b='';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=g(a);if((a=e.unless.call(c,c.isLast,{hash:{},inverse:this.noop,fn:this.program(9,function(){return","},d),data:d}))||0===a)b+=a;return b})})(); +(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='';(a=e.name)?a=a.call(b,{hash:{},data:d}):(a=b.name,a="function"===typeof a?a.apply(b):a);c+=h(a);if((a=e.unless.call(b,b.isLast,{hash:{},inverse:this.noop, +fn:this.program(9,function(){return","},d),data:d}))||0===a)c+=a;return c});m.no_threads=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b=''+(a((f=e.l10n||b.l10n,f?f.call(b,"clients.no_clients",d):c.call(b,"l10n","clients.no_clients",d)))+"")});m.no_visitors=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d|| +{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b=''+(a((f=e.l10n||b.l10n,f?f.call(b,"visitors.no_visitors",d):c.call(b,"l10n","visitors.no_visitors",d)))+"")});m.queued_thread=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='\n
';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,g;b={hash:{},data:c}; +return b=""+(h((g=e.l10n||a.l10n,g?g.call(a,"chat.client.spam.prefix",b):f.call(a,"l10n","chat.client.spam.prefix",b)))+" ")},d),data:d}))||0===a)c+=a;(a=e.userName)?a=a.call(b,{hash:{},data:d}):(a=b.userName,a="function"===typeof a?a.apply(b):a);c+=h(a)+"
\n ";if((a=e["if"].call(b,b.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,g;c='
';(g=e.firstMessagePreview)?g=g.call(a,{hash:{},data:b}):(g=a.firstMessagePreview,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"
"},d),data:d}))||0===a)c+=a;c+='\n\n\n
\n ';if((a=e["if"].call(b,b.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,g;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,b){var c,g;c={hash:{},data:b};return c='\n
\n ')},d),data:d}))||0=== +a)c+=a;c+="\n ";if((a=e["if"].call(b,b.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,g;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,b){var c,g;c={hash:{},data:b}; +return c='\n
\n ')},d),data:d}))||0===a)c+=a;c+='\n
\n
\n\n';if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(19,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return h(b)}, +d),fn:this.program(17,function(a,b){var c,g;c='';(g=e.remote)?g=g.call(a,{hash:{},data:b}):(g=a.remote,g="function"===typeof g?g.apply(a):g);return c+=h(g)+""},d),data:d}))||0===a)c+=a;c+='\n';(a=e.stateDesc)?a=a.call(b,{hash:{},data:d}):(a=b.stateDesc,a="function"===typeof a?a.apply(b):a);c+=h(a)+'\n';(a=e.agentName)?a=a.call(b,{hash:{},data:d}):(a=b.agentName,a="function"===typeof a? +a.apply(b):a);c+=h(a)+'\n\n';if((a=e.unless.call(b,b.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,b){var c,g;c=''},d),data:d}))||0===a)c+=a;c+='\n';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.program(27,function(a,b){var c;(c=e.userAgent)?c=c.call(a,{hash:{},data:b}):(c=a.userAgent,c="function"===typeof c?c.apply(a):c);return h(c)},d),fn:this.program(25,function(a){var c;return h((c=(c=a.ban,null==c||!1===c?c:c.reason),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===a)c+=a;return c+""});m.status_panel=l(function(c,b,e,a,d){this.compilerInfo= +[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;c='
';(a=e.message)?a=a.call(b,{hash:{},data:d}):(a=b.message,a="function"===typeof a?a.apply(b):a);c+=j(a);if((f=e["if"].call(b,(a=b.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return j((b=e.l10n||a.l10n,b?b.call(a,"pending.status.online",d):h.call(a,"l10n","pending.status.online",d)))},d),fn:this.program(1,function(a,c){var b, +d;d={hash:{},data:c};return j((b=e.l10n||a.l10n,b?b.call(a,"pending.status.away",d):h.call(a,"l10n","pending.status.away",d)))},d),data:d}))||0===f)c+=f;c+='
"});m.threads_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
'+(j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.name", +a):h.call(b,"l10n","pending.table.head.name",a)))+"");a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.actions",a):h.call(b,"l10n","pending.table.head.actions",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.contactid",a):h.call(b,"l10n","pending.table.head.contactid",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.state",a):h.call(b,"l10n","pending.table.head.state", +a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.operator",a):h.call(b,"l10n","pending.table.head.operator",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.total",a):h.call(b,"l10n","pending.table.head.total",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.waittime",a):h.call(b,"l10n","pending.table.head.waittime",a)))+"";a={hash:{},data:d}; +return c+=j((f=e.l10n||b.l10n,f?f.call(b,"pending.table.head.etc",a):h.call(b,"l10n","pending.table.head.etc",a)))+'
'});m.visitor=l(function(c,b,e,a,d){function f(){return"-"}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var h,j=e.helperMissing,k=this.escapeExpression;c='\n ';if((a=e.unless.call(b,b.invitationInfo,{hash:{},inverse:this.program(3,function(a,c){var b;(b=e.userName)? +b=b.call(a,{hash:{},data:c}):(b=a.userName,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=k(d)+""},d),data:d}))||0===a)c+=a;h={hash:{},data:d};c=c+'\n\n\n
\n
\n
\n
\n\n');if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(5,function(a,b){var c,d;c=''; +(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return c+=k(d)+""},d),data:d}))||0===a)c+=a;c+='\n\n\n';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(9,function(a){var b;return k((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)c+=a;c+='\n';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('')},d),data:d}))||0===a)c+=a;c+='\n';(a=e.invitations)?a=a.call(b,{hash:{},data:d}):(a=b.invitations,a="function"===typeof a?a.apply(b):a);c+=k(a)+" / ";(a=e.chats)?a=a.call(b,{hash:{},data:d}):(a=b.chats,a="function"===typeof a?a.apply(b):a);c+=k(a)+'\n';(a=e.userAgent)?a=a.call(b,{hash:{},data:d}):(a=b.userAgent,a="function"===typeof a?a.apply(b):a);return c+=k(a)+""}); +m.visitors_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
'+(j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.name",a):h.call(b,"l10n","visitors.table.head.name",a)))+"");a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.actions",a):h.call(b,"l10n", +"visitors.table.head.actions",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.contactid",a):h.call(b,"l10n","visitors.table.head.contactid",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.firsttimeonsite",a):h.call(b,"l10n","visitors.table.head.firsttimeonsite",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.lasttimeonsite",a):h.call(b,"l10n","visitors.table.head.lasttimeonsite", +a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.invited.by",a):h.call(b,"l10n","visitors.table.head.invited.by",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.invitationtime",a):h.call(b,"l10n","visitors.table.head.invitationtime",a)))+"";a={hash:{},data:d};c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.invitations",a):h.call(b,"l10n","visitors.table.head.invitations",a)))+""; +a={hash:{},data:d};return c+=j((f=e.l10n||b.l10n,f?f.call(b,"visitors.table.head.etc",a):h.call(b,"l10n","visitors.table.head.etc",a)))+'
'})})(); diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars index a482a764..1e7464bb 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/agent.handlebars @@ -1 +1 @@ -{{name}}{{#unless isLast}},{{/unless}} \ No newline at end of file +{{name}}{{#unless isLast}},{{/unless}} \ No newline at end of file diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars index 7a629f6e..0d076727 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/no_threads.handlebars @@ -1 +1 @@ -{{L10n "clients.no_clients"}} \ No newline at end of file +{{l10n "clients.no_clients"}} \ No newline at end of file diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars index 17e3f3da..affba3e4 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/no_visitors.handlebars @@ -1 +1 @@ -{{L10n "visitors.no_visitors"}} \ No newline at end of file +{{l10n "visitors.no_visitors"}} \ No newline at end of file diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars index 339994e4..04e36c60 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/queued_thread.handlebars @@ -1,20 +1,20 @@ -
{{#if ban}}{{L10n "chat.client.spam.prefix"}} {{/if}}{{userName}}
+
{{#if ban}}{{l10n "chat.client.spam.prefix"}} {{/if}}{{userName}}
{{#if firstMessage}}
{{firstMessagePreview}}
{{/if}}
{{#if canOpen}} -
+
{{/if}} {{#if canView}} -
+
{{/if}} {{#if tracked}} -
+
{{/if}} {{#if canBan}} -
+
{{/if}}
diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/status_panel.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/status_panel.handlebars index 4f8ec934..14cff0a2 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/status_panel.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/status_panel.handlebars @@ -1 +1 @@ -
{{message}}{{#if agent.away}}{{L10n "pending.status.away"}}{{else}}{{L10n "pending.status.online"}}{{/if}}
\ No newline at end of file +
{{message}}{{#if agent.away}}{{l10n "pending.status.away"}}{{else}}{{l10n "pending.status.online"}}{{/if}}
\ No newline at end of file diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars index ede4845f..e588671c 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/threads_collection.handlebars @@ -1,14 +1,14 @@ - - - - - - - - + + + + + + + + diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/visitor.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/visitor.handlebars index 7d5b0132..1013f8b8 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/visitor.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/visitor.handlebars @@ -1,9 +1,9 @@ diff --git a/src/mibew/styles/pages/default/templates_src/client_side/users/visitors_collection.handlebars b/src/mibew/styles/pages/default/templates_src/client_side/users/visitors_collection.handlebars index cf263b83..b73c8e41 100644 --- a/src/mibew/styles/pages/default/templates_src/client_side/users/visitors_collection.handlebars +++ b/src/mibew/styles/pages/default/templates_src/client_side/users/visitors_collection.handlebars @@ -1,15 +1,15 @@
{{L10n "pending.table.head.name"}}{{L10n "pending.table.head.actions"}}{{L10n "pending.table.head.contactid"}}{{L10n "pending.table.head.state"}}{{L10n "pending.table.head.operator"}}{{L10n "pending.table.head.total"}}{{L10n "pending.table.head.waittime"}}{{L10n "pending.table.head.etc"}}{{l10n "pending.table.head.name"}}{{l10n "pending.table.head.actions"}}{{l10n "pending.table.head.contactid"}}{{l10n "pending.table.head.state"}}{{l10n "pending.table.head.operator"}}{{l10n "pending.table.head.total"}}{{l10n "pending.table.head.waittime"}}{{l10n "pending.table.head.etc"}}
- {{#unless invitationInfo}}{{userName}}{{else}}{{userName}}{{/unless}} + {{#unless invitationInfo}}{{userName}}{{else}}{{userName}}{{/unless}}
-
+
- - - - - - - - - + + + + + + + + +
{{L10n "visitors.table.head.name"}}{{L10n "visitors.table.head.actions"}}{{L10n "visitors.table.head.contactid"}}{{L10n "visitors.table.head.firsttimeonsite"}}{{L10n "visitors.table.head.lasttimeonsite"}}{{L10n "visitors.table.head.invited.by"}}{{L10n "visitors.table.head.invitationtime"}}{{L10n "visitors.table.head.invitations"}}{{L10n "visitors.table.head.etc"}}{{l10n "visitors.table.head.name"}}{{l10n "visitors.table.head.actions"}}{{l10n "visitors.table.head.contactid"}}{{l10n "visitors.table.head.firsttimeonsite"}}{{l10n "visitors.table.head.lasttimeonsite"}}{{l10n "visitors.table.head.invited.by"}}{{l10n "visitors.table.head.invitationtime"}}{{l10n "visitors.table.head.invitations"}}{{l10n "visitors.table.head.etc"}}