From 20e9e6b61141dfd032a4d73d340e2ca232b0be25 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 13 Feb 2016 16:32:00 -0800 Subject: [PATCH] Update chat template so no user-icon shown when a server or PM is selected. --- client/js/lounge.templates.js | 21 +++++++++++++-------- client/views/chat.tpl | 4 +++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/client/js/lounge.templates.js b/client/js/lounge.templates.js index 47f8b66f..457d3012 100644 --- a/client/js/lounge.templates.js +++ b/client/js/lounge.templates.js @@ -37,8 +37,11 @@ templates['chat'] = template({"1":function(depth0,helpers,partials,data) { + escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper))) + "\" class=\"chan " + escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper))) - + "\">\n
\n \n \n
\n \n"; + stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, (depth0 != null ? depth0.type : depth0), "channel", {"name":"equal","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data})); + if (stack1 != null) { buffer += stack1; } + buffer += "
\n \n
\n " + escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper))) @@ -46,7 +49,7 @@ templates['chat'] = template({"1":function(depth0,helpers,partials,data) { stack1 = ((helpers.parse || (depth0 && depth0.parse) || helperMissing).call(depth0, (depth0 != null ? depth0.topic : depth0), {"name":"parse","hash":{},"data":data})); if (stack1 != null) { buffer += stack1; } buffer += "\n
\n
\n
\n
\n"; },"2":function(depth0,helpers,partials,data) { - return " Disconnect\n"; + return " \n"; },"4":function(depth0,helpers,partials,data) { + return " Disconnect\n"; + },"6":function(depth0,helpers,partials,data) { var stack1, helperMissing=helpers.helperMissing, buffer = ""; - stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, (depth0 != null ? depth0.type : depth0), "query", {"name":"equal","hash":{},"fn":this.program(5, data),"inverse":this.program(7, data),"data":data})); + stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, (depth0 != null ? depth0.type : depth0), "query", {"name":"equal","hash":{},"fn":this.program(7, data),"inverse":this.program(9, data),"data":data})); if (stack1 != null) { buffer += stack1; } return buffer; -},"5":function(depth0,helpers,partials,data) { +},"7":function(depth0,helpers,partials,data) { return " Close\n"; - },"7":function(depth0,helpers,partials,data) { - return " Leave\n"; },"9":function(depth0,helpers,partials,data) { + return " Leave\n"; + },"11":function(depth0,helpers,partials,data) { return "show"; },"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { var stack1, buffer = ""; diff --git a/client/views/chat.tpl b/client/views/chat.tpl index 78c860e3..68f4cf15 100644 --- a/client/views/chat.tpl +++ b/client/views/chat.tpl @@ -2,7 +2,9 @@
- + {{#equal type "channel"}} + + {{/equal}}