mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
humanSize handlebars helper
This commit is contained in:
parent
fe3a76817d
commit
ffac197386
1 changed files with 4 additions and 0 deletions
|
@ -354,3 +354,7 @@ Handlebars.registerHelper('customHTML', function(property) {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
Ember.Handlebars.registerBoundHelper('humanSize', function(size) {
|
||||
return new Handlebars.SafeString(I18n.toHumanSize(size));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue