<% if @cron_entries.present? %>
<% @cron_entries.each do |cron_entry| %> <% end %>
Cron Job Name Configuration Set  <%= tag.button "Toggle", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: ".job-properties" }, aria: { expanded: false, controls: @cron_entries.map { |cron_entry| dom_id(cron_entry, 'properties') }.join(" ") } %> Args  <%= tag.button "Toggle", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: ".job-args" }, aria: { expanded: false, controls: @cron_entries.map { |cron_entry| dom_id(cron_entry, 'args') }.join(" ") } %> Class Description Next scheduled
<%= cron_entry.key %> <%= cron_entry.cron %> <%= case cron_entry.set when NilClass "None" when Proc "Lambda/Callable" when Hash tag.button("Preview", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: "##{dom_id(cron_entry, 'properties')}" }, aria: { expanded: false, controls: dom_id(cron_entry, 'properties') }) + tag.pre(JSON.pretty_generate(cron_entry.set), id: dom_id(cron_entry, 'properties'), class: "collapse job-properties") end %> <%= case cron_entry.args when NilClass "None" when Proc "Lambda/Callable" when Hash tag.button("Preview", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: "##{dom_id(cron_entry, 'args')}" }, aria: { expanded: false, controls: dom_id(cron_entry, 'args') }) + tag.pre(JSON.pretty_generate(cron_entry.args), id: dom_id(cron_entry, 'args'), class: "collapse job-args") end %> <%= cron_entry.job_class %> <%= cron_entry.description %> <%= cron_entry.next_at %>
<% else %> No cron jobs present. <% end %>