       @vcs_revision().substring 0, 9
 
     @author = @komp =>
-      @committer_name() or @committer_email()
+      @committer_name or @committer_email
 
   # TODO: CSRF protection
   retry_build: () =>

  loadProject: (cx, username, project) =>
    project_name = "#{username}/#{project}"
    $.getJSON "/api/v1/project/#{project_name}", (data) =>
      @builds.removeAll()
      for d in data
        @builds.push(new Build d)
    display "project", {project: project_name}


  loadBuild: (cx, username, project, build_num) =>
    project_name = "#{username}/#{project}"
    $.getJSON "/api/v1/project/#{project_name}/#{build_num}", (data) =>
      @build(new Build data)
    display "build", {project: project_name, build_num: build_num}




  loadDashboard: (cx) =>
    $.getJSON '/api/v1/projects', (data) =>
      start_time = Date.now()
      @projects((new Project d for d in data))
      window.time_taken_projects = Date.now() - start_time
      if @first_login
        @first_login = false
        setTimeout(() => @loadDashboard cx, 3000)


    $.getJSON '/api/v1/recent-builds', (data) =>
      start_time = Date.now()
      @recent_builds((new Build d for d in data))
      window.time_taken_recent_builds = Date.now() - start_time

    display "dashboard", {}

