       when 'reboot'
         Meteor.call 'rebootMachine', @room._id, modalCall
 
-Template.tableRow.mcreated = ->
-  moment(@created).format("DD-MM-YYYY HH:MM")
-
-Template.tableRow.mduration = ->
-  moment(@duration * 1000).format("HH:mm:ss")
+Template.tableRow.helpers
+  mcreated: ->
+    moment(@created).format("DD-MM-YYYY HH:MM")
+  mduration: ->
+    moment(@duration * 1000).format("HH:mm:ss")

Template.controls.thumbnail = ->
  switch Session.get 'view'
    when 'view-screen'
      @presentationVideo
    when 'view-camera'
      @presenterVideo
    when 'view-galicaster'
      @screen

Template.controls.events
  'click .peakaboo-command': (e) ->

Template.confirmModal.rendered = ->
  Ladda.bind 'button.ladda-button'

Template.confirmModal.helpers
  modal: ->
    Session.get 'modal'
  commandError: ->
    Session.get 'command-error'

modalCall = (error, result) ->
  # When does error occur?
