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;
},"useData":true});
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=\""
+ escapeExpression(lambda(((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), depth0))
+ " users\">\n</div>\n";
+ escapeExpression(((helpers.users || (depth0 && depth0.users) || helperMissing).call(depth0, ((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), {"name":"users","hash":{},"data":data})))
+ "\">\n</div>\n";
},"3":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return " <button class=\"user\">"

View File

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

View File

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