<% @events.each do |event| %> <% enabled = ClockworkWeb.enabled?(event.job) %> "> <% end %>
Job Period Last Run Action
<%= event.job %> <%= friendly_period(event.instance_variable_get(:@period)) %> <% at = event.instance_variable_get(:@at) %> <% if at %>
min: <%= at.instance_variable_get(:@min) %> hour: <%= at.instance_variable_get(:@hour) %> wday: <%= at.instance_variable_get(:@wday) %>
<% end %>
<%= last_run(event) %> <%= button_to enabled ? "Disable" : "Enable", home_job_path(job: event.job, enable: !enabled) %>