<%- read_only ||= false -%>
  • <% cache deploy do %> <% cache deploy.author do %> <%= render 'shipit/shared/author', author: deploy.author %> <% end %> <%= deploy_status_in_words(deploy.status) %>
    <%= render_commit_message deploy.until_commit %>

    <% if @stack.release_status? %> <%= link_to '#', data: {tooltip: deploy.last_release_status.description.presence} do %> <% end %> <% end %> <%= deploy.rollback? ? 'rolled back' : 'deployed' %> <%= link_to_github_deploy(deploy) %> +<%= deploy.additions %> -<%= deploy.deletions %> <% if deploy.ignored_safeties? %>ignoring safeties<% end %> <% if deploy.aborted_by %>aborted by <%= deploy.aborted_by.login %><% end %>

    <% if read_only %> on <%= deploy.created_at.strftime('%Y-%m-%d %H:%M:%S') %> UTC <% else %> <%= timeago_tag(deploy.created_at, force: true) %> <% end %> <% if deploy.duration? %> in <%= deploy.duration %> <% end %>

    <% if @stack.release_status? %>
    <%= link_to stack_deploy_release_statuses_path(@stack, deploy), class: 'action-set-release-status action-reject-release', data: {tooltip: t('release.reject'), status: 'failure'} do %> <% end %> <%= link_to stack_deploy_release_statuses_path(@stack, deploy), class: 'action-set-release-status action-validate-release', data: {tooltip: t('release.validate'), status: 'success'} do %> <% end %>
    <% end %> <% end %> <% unless read_only %>
    <% if deploy.rollbackable? %> <%= rollback_button(deploy) %> <% elsif deploy.currently_deployed? && !deploy.stack.active_task? %> <%= redeploy_button(deploy.until_commit) %> <% end %>
    <% end %>