User/users wording
This commit is contained in:
parent
0e00f894a8
commit
ced6227818
File diff suppressed because one or more lines are too long
5
client/js/libs/handlebars/users.js
Normal file
5
client/js/libs/handlebars/users.js
Normal file
@ -0,0 +1,5 @@
|
||||
Handlebars.registerHelper(
|
||||
"users", function(count) {
|
||||
return count + " " + (count == 1 ? "user" : "users");
|
||||
}
|
||||
);
|
@ -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\">"
|
||||
|
@ -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">
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user