mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
humanSize handlebars helper
This commit is contained in:
parent
fe3a76817d
commit
ffac197386
|
@ -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 New Issue
Block a user