Ui is completely changed

This commit is contained in:
Senad Uka
2016-03-19 09:23:59 +01:00
parent 21d364bf52
commit 748dd19a87
10 changed files with 183 additions and 111 deletions

View File

@@ -0,0 +1,14 @@
Template.state_details.helpers({
pretty_valve: function(state) {
if (state === 'open') return "Otvoren";
if (state === 'opening') return "Otvara se";
if (state === 'closing') return "Zatvara se";
if (state === 'closed') return "Zatvoren";
},
last_communication_time: function() {
return moment(this.time).fromNow();
}
});
Template.state_details.events({
});