Sha256: fd12b615044b59957c8316b673375ce987d8b27b54f9e5a1637c094889718972

Contents?: true

Size: 1.68 KB

Versions: 32

Compression:

Stored size: 1.68 KB

Contents

<% 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 %>

<table class="<%= table_css_classes('table-condensed table-fixed') %>">
  <thead>
    <th><%= N_("Cron line") %></th>
    <th><%= N_("Task count") %></th>
    <th><%= N_("Action") %></th>
    <th><%= N_("Last occurrence") %></th>
    <th><%= N_("Next occurrence") %></th>
    <th><%= N_("Current iteration") %></th>
    <th><%= N_("Iteration limit") %></th>
    <th><%= N_("Repeat until") %></th>
    <th><%= N_("State") %></th>
    <th/>
  </thead>
  <% @recurring_logics.each do |recurring_logic| %>
    <tr>
      <td><%= link_to(recurring_logic.cron_line, foreman_tasks_recurring_logic_path(recurring_logic)) %></td>
      <td><%= link_to(recurring_logic.tasks.count, foreman_tasks_tasks_url(:search => "task_group.id = #{recurring_logic.task_group.id}")) %></td>
      <td><%= format_task_input(recurring_logic.tasks.first) %></td>
      <td><%= recurring_logic.tasks.order(:started_at).where('started_at IS NOT NULL').last.try(:started_at) || "-" %></td>
      <td><%= recurring_logic_next_occurrence recurring_logic %></td>
      <td><%= recurring_logic.iteration %></td>
      <td><%= format_recurring_logic_limit recurring_logic.max_iteration %></td>
      <td><%= format_recurring_logic_limit recurring_logic.end_time.try(:in_time_zone) %></td>
      <td><%= recurring_logic_state(recurring_logic) %></td>
      <td><%= recurring_logic_action_buttons(recurring_logic) %></td>
    </tr>
  <% end %>
</table>

<%= will_paginate_with_info @recurring_logics %>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-1.0.1 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-1.0.0 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.5 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.4 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.3 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.2 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.16.3 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.1 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.11 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.16.2 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.10 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.16.1 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.17.0 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.9 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.8 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.14.6 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.7 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.16.0 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.15.6 app/views/foreman_tasks/recurring_logics/index.html.erb