From 6c2534ec610a4f965dbab06c245c3306e9bda3ec Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 6 Jun 2013 17:51:08 -0700 Subject: [PATCH] File size won't be bytes anymore --- UI/Episode/Summary/ViewTemplate.html | 2 +- UI/Mixins/handlebars.mixin.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/Episode/Summary/ViewTemplate.html b/UI/Episode/Summary/ViewTemplate.html index 45edc578c..ceb170715 100644 --- a/UI/Episode/Summary/ViewTemplate.html +++ b/UI/Episode/Summary/ViewTemplate.html @@ -15,7 +15,7 @@ {{path}} - {{size}} + {{fileSize size}} {{quality.quality.name}} diff --git a/UI/Mixins/handlebars.mixin.js b/UI/Mixins/handlebars.mixin.js index dcbfd488a..e6be62133 100644 --- a/UI/Mixins/handlebars.mixin.js +++ b/UI/Mixins/handlebars.mixin.js @@ -18,3 +18,7 @@ Handlebars.registerHelper("debug", function(optionalValue) { console.log(optionalValue); } }); + +Handlebars.registerHelper("fileSize", function(size) { + return size.bytes(); +}); \ No newline at end of file