Sha256: b50a63048349cd9660db195163c7835ac7c4771771386f03f0b2981404572808

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 KB

Contents

<%- read_only ||= false -%>

<li class="task deploy" id="task-<%= deploy.id %>" data-status="<%= deploy.status %>">
  <%= render 'shipit/shared/author', author: deploy.author %>
  <a href="<%= stack_deploy_path(@stack, deploy) %>" class="status status--<%= deploy.status %>" data-tooltip="<%= deploy.status.capitalize %>">
    <i class="status__icon"></i>
    <span class="visually-hidden"><%= deploy.status %></span>
  </a>
  <div class="commit-details">
    <span class="commit-title">
      <a href="<%= stack_deploy_path(@stack, deploy) %>">
        <%= render_commit_message deploy.until_commit %>
      </a>
    </span>
    <p class="commit-meta">
      <%= deploy.rollback? ? 'rolled back' : 'deployed' %>
      <span class="sha"><%= link_to_github_deploy(deploy) %></span>
      <span class="code-additions">+<%= deploy.additions %></span>
      <span class="code-deletions">-<%= deploy.deletions %></span>
    </p>
    <p class="commit-meta">
      <% if read_only %>
        <span class="utc-timecode">on <%= deploy.created_at.strftime('%Y-%m-%d %H:%M:%S') %> UTC</span>
      <% else %>
        <%= timeago_tag(deploy.created_at, force: true) %>
      <% end %>
      <% if deploy.duration? %>
        in <%= deploy.duration %>
      <% end %>
    </p>
  </div>
  <% unless read_only %>
    <div class="commit-actions">
      <% if deploy.rollbackable? %>
        <% if deploy.stack.active_task? %>
          <%= link_to 'Deploy in progress...', '#', class: 'btn disabled deploy-action' %>
        <% else %>
          <%= link_to 'Rollback to this deploy...', rollback_stack_deploy_path(@stack, deploy), class: 'btn btn--delete deploy-action rollback-action' %>
        <% end %>
      <% elsif deploy.currently_deployed? && !deploy.stack.active_task? %>
        <%= redeploy_button(deploy.until_commit) %>
      <% end %>
    </div>
  <% end %>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shipit-engine-0.18.1 app/views/shipit/deploys/_deploy.html.erb
shipit-engine-0.18.0 app/views/shipit/deploys/_deploy.html.erb
shipit-engine-0.17.0 app/views/shipit/deploys/_deploy.html.erb
shipit-engine-0.16.0 app/views/shipit/deploys/_deploy.html.erb