Files
old-tfm/app/client/app.js

18 lines
347 B
JavaScript
Raw Normal View History

if (Meteor.isClient) {
Template.display.helpers({
2015-12-29 23:25:11 +01:00
sensorDataCollection: function () {
return SensorData.find({}, {sort: {created_at: -1}})
}
});
Template.display.events({
});
2015-12-29 23:25:11 +01:00
Template.sensorData.helpers({
created_at_formatted: function() {
2015-12-27 07:41:18 +01:00
return moment(this.created_at).format("DD.MM.YYYY, hh:mm")
}
});
}