User/users wording

This commit is contained in:
Mattias Erming 2014-09-10 09:50:59 -07:00
parent 0e00f894a8
commit ced6227818
5 changed files with 16 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
Handlebars.registerHelper(
"users", function(count) {
return count + " " + (count == 1 ? "user" : "users");
}
);

View File

@ -100,10 +100,10 @@ templates['network'] = template({"1":function(depth0,helpers,partials,data) {
return buffer; return buffer;
},"useData":true}); },"useData":true});
templates['user'] = template({"1":function(depth0,helpers,partials,data) { templates['user'] = template({"1":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, escapeExpression=this.escapeExpression; var stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return "<div class=\"count\">\n <input class=\"search\" placeholder=\"" return "<div class=\"count\">\n <input class=\"search\" placeholder=\""
+ escapeExpression(lambda(((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), depth0)) + escapeExpression(((helpers.users || (depth0 && depth0.users) || helperMissing).call(depth0, ((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), {"name":"users","hash":{},"data":data})))
+ " users\">\n</div>\n"; + "\">\n</div>\n";
},"3":function(depth0,helpers,partials,data) { },"3":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return " <button class=\"user\">" return " <button class=\"user\">"

View File

@ -1,6 +1,6 @@
{{#if users.length}} {{#if users.length}}
<div class="count"> <div class="count">
<input class="search" placeholder="{{users.length}} users"> <input class="search" placeholder="{{users users.length}}">
</div> </div>
{{/if}} {{/if}}
<div class="names"> <div class="names">

View File

@ -1,7 +1,7 @@
{ {
"name": "shout", "name": "shout",
"description": "A web IRC client", "description": "A web IRC client",
"version": "0.21.1", "version": "0.21.2",
"author": "Mattias Erming", "author": "Mattias Erming",
"preferGlobal": true, "preferGlobal": true,
"bin": { "bin": {