%= content_tag :style, nonce: request.content_security_policy_nonce_directives&.include?("style-src") ? content_security_policy_nonce : nil do %> body { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; margin: 0; padding: 20px; font-size: 14px; line-height: 1.4; color: #333; } a, a:visited, a:active { color: #428bca; text-decoration: none; } a:hover { text-decoration: underline; } table { width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; } th { text-align: left; border-bottom: solid 2px #ddd; } table td, table th { padding: 8px; } td { border-top: solid 1px #ddd; } .disabled { background-color: pink; } .width-15 { width: 15%; } <% end %>
Multiple clockwork processes detected
<% elsif ClockworkWeb.running? %>Clockwork is running
<% else %>Clockwork is not running <% if @last_heartbeat %> - last heartbeat was <%= time_ago_in_words(@last_heartbeat) %> ago <% end %>
<% end %> <% end %> <% else %>Add Redis for monitoring and disabling jobs
<% 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_runs[event.job]) %> | <%= button_to enabled ? "Disable" : "Enable", home_job_path(job: event.job, enable: !enabled), disabled: !ClockworkWeb.redis %> |