Sha256: 579de7bc366329d35d4ebe5c4c8ce9e28cadb12e223d4eb7e9fe0d4d267e54d1

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

<% title _('Job invocations') %>

<table class="table table-bordered table-striped table-condensed">
  <thead>
    <tr>
      <th><%= sort :job_name, :as => _('Job name') %></th>
      <th><%= _('Status') %></th>
      <th><%= _('Succeeded') %></th>
      <th><%= _('Failed') %></th>
      <th><%= _('Pending') %></th>
      <th><%= _('Total hosts') %></th>
      <th><%= sort :started_at, :as => _('Started') %></th>
    </tr>
  </thead>

  <tbody>
    <% @job_invocations.each do |invocation| %>
      <tr>
        <td><%= link_to_if_authorized "#{invocation.description.try(:capitalize) || invocation.job_name}", hash_for_job_invocation_path(invocation).merge(:auth_object => invocation, :permission => :view_job_invocation) %></td>
        <td><%= link_to_invocation_task_if_authorized(invocation) %></td>
        <td><%= invocation_count(invocation, :output_key => :success_count) %></td>
        <td><%= invocation_count(invocation, :output_key => :failed_count) %></td>
        <td><%= invocation_count(invocation, :output_key => :pending_count) %></td>
        <td><%= invocation_count(invocation, :output_key => :total_count) %></td>
	<td><%= time_ago(invocation.task.try(:started_at)) %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= will_paginate_with_info @job_invocations %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.2 app/views/job_invocations/index.html.erb