 
 ready = ->
     add_click_to_project_tiles()
-    add_click_action_to_test_button()
+    add_click_to_test_buttons()
 
     $('.project-tile').hover ->
       $(@).toggleClass( 'project-tile-active' )

  if percent < 15  # Even if it's zero, we want to see some 
    percent = 15   # indication of activity
    
  bar.css('width', "#{percent}%")
  if percent == 100
    container.fadeOut(1300)
  else
    container.fadeIn(1000)


project_is_updated = (p_id, tested_at) ->
  server_time = tested_at
  project     = project_container(p_id)
  return if ! project
  project.data('tested-at') < server_time


update_project_tile = (p_id) ->

# Helper functions ###########################
element_exists = (pattern) ->
  $(pattern).length > 0

debug_json = (json) ->
  console.debug(JSON.stringify(json, undefined, 2))



# Return the element representing the given project
