Sha256: a33cc53a8abe193d0d40a7efc536e90c66310e7ba219316660ffe4e7714a409b

Contents?: true

Size: 1.62 KB

Versions: 12

Compression:

Stored size: 1.62 KB

Contents

<%- read_only ||= false -%>

<li class="task deploy" id="task-<%= deploy.id %>" data-status="<%= deploy.status %>">
  <%= render 'commits/commit_author', commit: deploy %>
  <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">
      <span class="sha"><%= link_to_github_deploy(deploy) %></span>
      <%= deploy.rollback? ? 'rolled back' : 'deployed' %> <%= timeago_tag(deploy.created_at, force: true) %>
      <span class="utc-timecode">at <%= deploy.created_at.strftime('%H:%M:%S') %> UTC</span>
      <span class="code-additions">+<%= deploy.additions %></span>
      <span class="code-deletions">-<%= deploy.deletions %></span>
    </p>
  </div>
  <% unless read_only %>
    <div class="commit-actions">
      <% if deploy.rollbackable? %>
        <% if deploy.stack.deploying? %>
          <%= 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.deploying? %>
        <%= redeploy_button(deploy.until_commit) %>
      <% end %>
    </div>
  <% end %>
</li>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 app/views/deploys/_deploy.html.erb
shipit-engine-0.5.1 app/views/deploys/_deploy.html.erb
shipit-engine-0.5.0 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.10 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.9 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.8 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.7 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.6 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.5 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.4 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.3 app/views/deploys/_deploy.html.erb
shipit-engine-0.4.2 app/views/deploys/_deploy.html.erb