%td

%a{href: "/repos/#{current_repo.get('name')}/builds/#{@.id}"}
  %span{class: Perkins.Helpers.status_class(@status) }

%td

= @.commit.commit.message.split("\n")[0]

%td

%a{href: Perkins.Helpers.commit_url(@.commit.sha), target: "blank"}
  #{@.commit.sha[0..7]}
  - if @.branch.present?
    %strong
      = "(#{@.branch})"

%td

- if @.build_status is "stopped"
  = "#{Perkins.Helpers.round(@.duration)} secs"
- else
  \- running

%td

- if @.build_status is "stopped"
  %abbr.timeago{title:@.build_time}