diff --git a/app/views/clockwork_web/home/index.html.erb b/app/views/clockwork_web/home/index.html.erb index d9cc85b..782466c 100644 --- a/app/views/clockwork_web/home/index.html.erb +++ b/app/views/clockwork_web/home/index.html.erb @@ -79,6 +79,7 @@ Job Period + Implementation block Last Run Action @@ -98,6 +99,14 @@ if __ <% end %> + + <% if block = event.instance_variable_get(:@block) %> +
+ Click to open + <%= RubyVM::AbstractSyntaxTree.of(block, keep_script_lines: true).source.tap(&:strip!) %> +
+ <% end %> + <%= last_run(@last_runs[event.job]) %> <%= button_to enabled ? "Disable" : "Enable", home_job_path(job: event.job, enable: !enabled), disabled: !ClockworkWeb.redis %>