Sha256: c07fb011ede36153d5661b3d17f85cd7cd6583341204dbea3803754fd3fa2c7f

Contents?: true

Size: 1.54 KB

Versions: 11

Compression:

Stored size: 1.54 KB

Contents

<% title _("Recurring logics") %>
<% title_actions help_path %>

<table class="table table-fixed table-bordered table-striped table-condensed">
  <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, true) %></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>

<%= page_entries_info @recurring_logics %>
<%= will_paginate @recurring_logics %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman-tasks-0.8.2 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.8.1 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.8.0 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.20 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.19 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.18 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.17 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.16 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.15 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.14 app/views/foreman_tasks/recurring_logics/index.html.erb
foreman-tasks-0.7.13 app/views/foreman_tasks/recurring_logics/index.html.erb