Sha256: 47c44747ea926c570f835fad446cea5d9ddd424eddf18d766386a8e9982566c4

Contents?: true

Size: 928 Bytes

Versions: 6

Compression:

Stored size: 928 Bytes

Contents

<h4 class="header">
  <%= link_to _("Latest Jobs"), job_invocations_path(:order=>'start_at DESC') %>
</h4>
<% if JobInvocation.latest_jobs.any? %>
  <table class="<%= table_css_classes('table-fixed') %>">
    <tr>
      <th class="col-md-5"><%= _("Name") %></th>
      <th class="col-md-2"><%= _("State") %></th>
      <th class="col-md-3"><%= _("Started") %></th>
    </tr>
    <% JobInvocation.latest_jobs.each do |invocation| %>
      <tr>
        <td class="ellipsis"><%= link_to_if_authorized invocation_description(invocation), hash_for_job_invocation_path(invocation).merge(:auth_object => invocation, :permission => :view_job_invocations, :authorizer => authorizer) %></td>
        <td><%= link_to_invocation_task_if_authorized(invocation) %></td>
        <td><%= time_in_words_span(invocation.start_at) %></td>
      </tr>
    <% end %>
  </table>
<% else %>
  <p class="ca"><%= _("No jobs available") %></p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_remote_execution-6.0.0 app/views/dashboard/_latest-jobs.html.erb
foreman_remote_execution-5.0.2 app/views/dashboard/_latest-jobs.html.erb
foreman_remote_execution-5.1.0 app/views/dashboard/_latest-jobs.html.erb
foreman_remote_execution-5.0.1 app/views/dashboard/_latest-jobs.html.erb
foreman_remote_execution-5.0.0 app/views/dashboard/_latest-jobs.html.erb
foreman_remote_execution-4.8.0 app/views/dashboard/_latest-jobs.html.erb