% title _("Recurring logics") %> <% title_actions SETTINGS[:version].short <= '1.13' ? help_path : help_button %> <% if @errors %> <%= alert(:class => 'alert-info', :id => 'multiple-alert', :close => false, :header => '', :text => @errors) %> <% end %> <% if authorized_for(:permission => :edit_recurring_logics, :auth_object => @recurring_logics) %> <% title_actions link_to(_('Clear Cancelled'), clear_cancelled_foreman_tasks_recurring_logics_path, class: ['btn', 'btn-sm', 'btn-danger'], :'data-toggle' => "modal", :'data-target' => "#clear_modal") %>
<% end %><%= N_("Cron line") %> | <%= N_("Task count") %> | <%= N_("Action") %> | <%= N_("Last occurrence") %> | <%= N_("Next occurrence") %> | <%= N_("Current iteration") %> | <%= N_("Iteration limit") %> | <%= N_("Repeat until") %> | <%= N_("State") %> | <% @recurring_logics.each do |recurring_logic| %> |
---|---|---|---|---|---|---|---|---|---|
<%= link_to(recurring_logic.cron_line, foreman_tasks_recurring_logic_path(recurring_logic)) %> | <%= link_to(recurring_logic.tasks.count, foreman_tasks_tasks_url(:search => "task_group.id = #{recurring_logic.task_group.id}")) %> | <%= format_task_input(recurring_logic.tasks.first) %> | <%= recurring_logic.tasks.order(:started_at).where('started_at IS NOT NULL').last.try(:started_at) || "-" %> | <%= recurring_logic_next_occurrence recurring_logic %> | <%= recurring_logic.iteration %> | <%= format_recurring_logic_limit recurring_logic.max_iteration %> | <%= format_recurring_logic_limit recurring_logic.end_time.try(:in_time_zone) %> | <%= recurring_logic_state(recurring_logic) %> | <%= recurring_logic_action_buttons(recurring_logic) %> |