Sha256: e299aab46b8aa5239a5a6db686134e7988faf30a472a2da10a3d58f4c1ff6119

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

<%= render partial: "projects/header", locals: {project: @project, subtitle: "Deploy to"} %>

<p>
  Branch: <b><%= @deploy.branch %></b>
</p>

<p>
  Commit Range: <b><%= link_to_commit_range_for_deploy @deploy %></b>
</p>

<p>
  Deployer: <b><%= @deploy.deployer %></b>
</p>

<p>
  Release Notes: <b><% if @deploy.release %><%= link_to "link", @deploy.release %><% else %>n/a<% end %></b>
</p>

<p>
  Completed: <b><%= @deploy.completed_at %></b>
</p>

<p>
  Duration: <b><%= @deploy.duration %></b> seconds
</p>

<div id="output">
  <%= ansi_to_html @deploy.output %>
</div>

<% unless @deploy.completed_at %>
<% content_for :javascripts do %>
<script type="text/javascript">
  $(function() {
    var interval = 900;
    var timer = window.setInterval(function() {
      $.getJSON(<%=raw project_deploy_path(project_id: @project.slug, id: @deploy.id).to_json %>, function(result) {
        if(result.completed) {
          window.clearInterval(timer);
        }
        $('#output').html(result.output);
      });
    }, interval);
  });
</script>
<% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
houston-core-0.6.0 app/views/deploys/show.html.erb
houston-core-0.5.6 app/views/deploys/show.html.erb
houston-core-0.5.5 app/views/deploys/show.html.erb
houston-core-0.5.4 app/views/deploys/show.html.erb
houston-core-0.5.3 app/views/deploys/show.html.erb
houston-core-0.5.2 app/views/deploys/show.html.erb
houston-core-0.5.1 app/views/deploys/show.html.erb
houston-core-0.5.0 app/views/deploys/show.html.erb