Sha256: c165ed8b39e380b61debb7ea56f14449166ba8d829b8d7b2bd62f58581fcfd87

Contents?: true

Size: 917 Bytes

Versions: 3

Compression:

Stored size: 917 Bytes

Contents

<% if @cron_schedules.present? %>
  <div class="card my-3">
    <div class="table-responsive">
      <table class="table card-table table-bordered table-hover table-sm mb-0">
        <thead>
          <th>Cron Job Name</th>
          <th>Configuration</th>
          <th>Class</th>
          <th>Description</th>
          <th>Next scheduled</th>
        </thead>
        <tbody>
          <% @cron_schedules.each do |job_key, job| %>
            <tr>
              <td class="font-monospace"><%= job_key %></td>
              <td class="font-monospace"><%= job[:cron] %></td>
              <td class="font-monospace"><%= job[:class] %></td>
              <td><%= job[:description] %></td>
              <td><%= Fugit.parse_cron(job[:cron]).next_time.to_local_time %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
<% else %>
  <em>No cron jobs present.</em>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
good_job-2.3.1 engine/app/views/good_job/cron_schedules/index.html.erb
good_job-2.3.0 engine/app/views/good_job/cron_schedules/index.html.erb
good_job-2.2.0 engine/app/views/good_job/cron_schedules/index.html.erb