<%= cron_entry.key %>
<%= cron_entry.description %>
<%= tag.span tag.code(cron_entry.job_class), class: "fs-5 mb-0" %>
<%= cron_entry.schedule %>
<%= relative_time cron_entry.next_at %>
<% if cron_entry.last_job.present? %>
<%= 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: "Enqueue cron entry now" }, title: "Enqueue cron entry now", data: { confirm: "Confirm enqueue cron entry now" } 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: "Disable cron entry" }, title: "Disable cron entry", data: { confirm: "Confirm disable cron entry" } 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: "Enable cron entry" }, title: "Enable cron entry", data: { confirm: "Confirm enable cron entry" } do %>
<%= render_icon "play" %>
<% end %>
<% end %>
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button",
title: "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" %>
Inspect
<% end %>
<%= tag.div id: dom_id(cron_entry, 'properties'), class: "collapse cron-entry-properties list-group-item collapse small bg-dark text-light" do %>
<%= tag.pre JSON.pretty_generate(cron_entry.display_properties) %>
<% end %>
<% end %>
<% if @cron_entries.empty? %>