Sha256: f6d6c14e2c7db711a3dacc0dec3414461719687f4d264c7166cb102506ebebce

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

<% if @task.building? || @task.prepared? %>
  <% content_for :head do %>
    <script type="text/javascript">
      //<![CDATA[ 
      $(document).ready(function(){
        $.getScript("<%= project_task_path(@project,@task) %>")
      });
      //]]>
    </script>
  <% end %>
<% end %>

<% content_tag_for :div, @task, :class=> @task.status do %>
  <h1><%= @task.name %></h1>
  <p class="status <%= @task.status %>">Build status: <%= @task.status %></p>

  <div class='task_description'>
  <% if @task.prepared? %>
    <p>This tasks is prepared to be run. Please wait other tasks finish.</p>
    <pre id="output"><%= @task.parsed_output %></pre>
    
  <% else  %>
    <dl>
      <dt>Started at:</dt>
      <dd><%= show_time(@task.started_at) %></dd>
  
    <% if @task.building? %>
      <dt>Elapsed time</dt>
      <dd class="elapsed_time"><%= show_elapsed(@task.build_duration) %></dd>
      <dt>Pid</dt>
      <dd><%= @task.pid %>
        <% form_for @task, :url => project_task_path(@project,@task) do |f| %>  
        <%= hidden_field_tag :kill, 'INT' %>
        <%= f.submit 'INT' %>
        <% end %>
      
        <% form_for @task, :url => project_task_path(@project,@task) do |f| %>  
        <%= hidden_field_tag :kill, 'QUIT' %>
        <%= f.submit 'QUIT' %>
        <% end %>
        
        <% form_for @task, :url => project_task_path(@project,@task) do |f| %>  
        <%= hidden_field_tag :kill, 'KILL' %>
        <%= f.submit 'QUIT' %>
        <% end %>
      
      </dd>
    <% else %>  
      <dt>Ended at:</dt>
      <dd><%= show_time(@task.ended_at) %> 
        <span><%= show_elapsed(@task.build_duration) %></span></dd>
    <% end %>
    <%= link_to 'raw', project_task_path(@project,@task, 'text'), :class => 'raw_link' %>
    </dl>
    <pre id="output"><%= @task.parsed_output %></pre>
  <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ginst-2.0.1 app/views/tasks/show.html.erb
ginst-2.0.0 app/views/tasks/show.html.erb