 
   onCommitUpdate = (message) ->
     loadFragment message, (id, commit) ->
-      $("#commit-#{id}").html(commit)
+      $("#commit-#{id}").html($timeago(commit))
 
   onCommitCreate = (message) ->
     loadFragment message, (id, commit) ->
-      $("ul.commit-lst").prepend(commit)
+      $("ul.commit-lst").prepend($timeago(commit))
 
   onCommitRemove = (message) ->
     json = JSON.parse(message.data)

jQuery ($) ->
  MAX_RETRY = 4

  retry = (message, callback, retryCount=0) ->
    retryCount += 1


  onDeployUpdate = (message) ->
    loadFragment message, (id, deploy) ->
      $("#deploy-#{id}").html($timeago(deploy))

  onDeployCreate = (message) ->
    loadFragment message, (id, deploy) ->
      $("ul.deploy-lst").prepend($timeago(deploy))

  $('[data-event-stream]').each ->
    url = $(this).data('event-stream')
