--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cms/app-client/app/helpers/int-display.js Tue Dec 20 23:42:18 2016 +0100
@@ -0,0 +1,14 @@
+import Ember from 'ember';
+
+export function intDisplay(params/*, hash*/) {
+ if(!params || params.length === 0) {
+ return Ember.String.htmlSafe('');
+ }
+ const nb = params[0];
+ if(nb === Number.NEGATIVE_INFINITY || Number.isNaN(nb) || nb === Number.POSITIVE_INFINITY ) {
+ return Ember.String.htmlSafe('');
+ }
+ return Ember.String.htmlSafe(`${nb}`);
+}
+
+export default Ember.Helper.helper(intDisplay);