<% @events.each do |event| %> <% enabled = !@disabled[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 %> at <%= friendly_time_part(at.instance_variable_get(:@hour)) %>:<%= friendly_time_part(at.instance_variable_get(:@min)) %> <% end %> <% if event.instance_variable_get(:@if) %> if __ <% end %> <%= last_run(@last_run[event.job]) %> <%= button_to enabled ? "Disable" : "Enable", home_job_path(job: event.job, enable: !enabled) %>