Shuo/client/js/libs/handlebars/users.js

6 lines
117 B
JavaScript

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