Ui is completely changed
This commit is contained in:
14
app/client/state_details.js
Normal file
14
app/client/state_details.js
Normal 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({
|
||||
});
|
||||
Reference in New Issue
Block a user