Sha256: af5dfafc969958f437fe29ecf0163fa59a3ef04185f8436718a8cb8e9d91d0a3

Contents?: true

Size: 725 Bytes

Versions: 5

Compression:

Stored size: 725 Bytes

Contents

<h1>Tasks</h1>

<%= link_to 'Back', jobs_path, class: 'btn btn-default' %>

<table class='table'>
  <thead>
    <tr>
      <th>ID</th>
      <th>Job</th>
      <th>Status</th>
      <th>Progress</th>
      <th>Started At</th>
      <th>Finished At</th>
    </tr>
  </thead>

  <tbody>
    <% @tasks.each do |task| %>
      <tr>
        <td><%= task.id %></td>
        <td><%= task.job.worker.name %></td>
        <td><%= link_to task.status, task_path(task) %></td>
        <td><%= task.progress %></td>
        <td><%= time_ago_in_words(task.started_at) if task.started_at.present? %></td>
        <td><%= time_ago_in_words(task.finished_at) if task.finished_at.present?%></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
integration_pal-0.2.3 app/views/integration_pal/tasks/index.html.erb
integration_pal-0.2.2 app/views/integration_pal/tasks/index.html.erb
integration_pal-0.2.1 app/views/integration_pal/tasks/index.html.erb
integration_pal-0.2.0 app/views/integration_pal/tasks/index.html.erb
integration_pal-0.1.6 app/views/integration_pal/tasks/index.html.erb