From 2a82dfe3fe93ed54088d00866d3520da08e7edec Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 3 Feb 2015 10:16:03 -0900 Subject: [PATCH] Null-Time view helper. --- app/helpers/null-time.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/helpers/null-time.js diff --git a/app/helpers/null-time.js b/app/helpers/null-time.js new file mode 100644 index 0000000..2baa675 --- /dev/null +++ b/app/helpers/null-time.js @@ -0,0 +1,8 @@ +import Ember from 'ember'; + +export default Ember.Handlebars.makeBoundHelper(function(value, options) { + if (value == null) { + return 'N/A'; + } + return value; +});