<%= t ".title" %>

<%= t "good_job.models.cron.class" %>
<%= t "good_job.models.cron.schedule" %>
<%= t "good_job.models.cron.next_scheduled" %>
<%= t "good_job.models.cron.last_run" %>
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", data: { bs_toggle: "collapse", bs_target: ".cron-entry-properties" }, aria: { expanded: false, controls: @cron_entries.map { |cron_entry| "##{dom_id(cron_entry, 'properties')}" }.join(" ") } do %> <%= render_icon "info" %> <%= t "good_job.actions.inspect" %> <% end %>
<% @cron_entries.each do |cron_entry| %>
<%= cron_entry.key %>
<%= cron_entry.description %>
<%= tag.span tag.code(cron_entry.job_class), class: "fs-5 mb-0" %>
<%= t "good_job.models.cron.schedule" %>
<%= cron_entry.schedule %>
<%= t "good_job.models.cron.next_scheduled" %>
<%= relative_time cron_entry.next_at %>
<% if cron_entry.last_job.present? %>
<%= t "good_job.models.cron.last_run" %>
<%= link_to relative_time(cron_entry.last_at), cron_entry_path(cron_entry), title: "Job #{cron_entry.last_job.id}" %> <% end %>
<%= button_to enqueue_cron_entry_path(cron_entry), method: :post, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.cron_entries.actions.enqueue") }, title: t("good_job.cron_entries.actions.enqueue"), data: { confirm: t("good_job.cron_entries.actions.confirm_enqueue") } do %> <%= render_icon "skip_forward" %> <% end %> <% if cron_entry.enabled? %> <%= button_to disable_cron_entry_path(cron_entry), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.cron_entries.actions.disable") }, title: t("good_job.cron_entries.actions.disable"), data: { confirm: t("good_job.cron_entries.actions.confirm_disable") } do %> <%= render_icon "pause" %> <% end %> <% else %> <%= button_to enable_cron_entry_path(cron_entry), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.cron_entries.actions.enable") }, title: t("good_job.cron_entries.actions.enable"), data: { confirm: t("good_job.cron_entries.actions.confirm_enable") } do %> <%= render_icon "play" %> <% end %> <% end %> <%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", title: t("good_job.actions.inspect"), data: { bs_toggle: "collapse", bs_target: "##{dom_id(cron_entry, 'properties')}" }, aria: { expanded: false, controls: dom_id(cron_entry, "properties") } do %> <%= render_icon "info" %> <%= t "good_job.actions.inspect" %> <% end %>
<%= tag.div id: dom_id(cron_entry, 'properties'), class: "collapse cron-entry-properties list-group-item collapse small bg-dark text-secondary" do %> <%= tag.pre JSON.pretty_generate(cron_entry.display_properties) %> <% end %> <% end %> <% if @cron_entries.empty? %>
<%= t ".no_cron_schedules_found" %>
<% end %>