%tr.deployment
  %td
    %strong= "##{deployment.iid}"

  %td
    = render 'projects/deployments/commit', deployment: deployment

  %td.build-column
    - if deployment.deployable
      = link_to [@project.namespace.becomes(Namespace), @project, deployment.deployable], class: 'build-link' do
        = "#{deployment.deployable.name} (##{deployment.deployable.id})"
      - if deployment.user
        by
        = user_avatar(user: deployment.user, size: 20)

  %td
    #{time_ago_with_tooltip(deployment.created_at)}

  %td.hidden-xs
    .pull-right
      = render 'projects/deployments/actions', deployment: deployment
      = render 'projects/deployments/rollback', deployment: deployment
