Sha256: d649a812f9acc5e3d1addf91e51d730cccce0b2b1e0f99994678bef9f8745c95

Contents?: true

Size: 1.79 KB

Versions: 8

Compression:

Stored size: 1.79 KB

Contents

<header class="row">
  <div class="col-sm-12">
    <h3>Scheduler History</h3>
  </div>

  <div class="col-sm-12">
    <form>
      <select name="filter">
        <option value="All" <%= "selected" if !@filter %>>All</option>
        <% @schedules.each do |schedule| %>
          <option value="<%=schedule%>" <%= "selected" if @filter == schedule.to_s%>><%=schedule%></option>
        <% end %>
      </select>
      <input type="submit" value="Filter">
    </form>
  </div>
</header>
<br>

<div class="container">
  <div class="row">
    <div class="col-md-9">
      <% if @scheduler_stats.length > 0 %>

      <table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;">
        <thead>
          <th style="width: 30%">Job Name</th>
          <th style="width: 15%">Hostname:Pid</th>
          <th style="width: 15%">Live Slots delta</th>
          <th style="width: 15%">Started At</th>
          <th style="width: 15%">Duration</th>
          <th style="width: 15%"></th>
        </thead>
        <tbody>
          <% @scheduler_stats.each do |stat| %>
          <tr>
            <td><%= stat.name %></td>
            <td><%= stat.hostname %>:<%= stat.pid %></td>
            <td>
              <% if stat.live_slots_start && stat.live_slots_finish %>
                <%= stat.live_slots_finish - stat.live_slots_start %>
              <% end %>
            </td>
            <td><%= sane_time stat.started_at %></td>
            <td><%= sane_duration stat.duration_ms %></td>
            <td>
              <% if stat.success.nil? %>
                RUNNING
              <% elsif !stat.success %>
                FAILED
              <% end %>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
      <% end %>
    </div>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mini_scheduler-0.18.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.17.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.16.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.15.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.14.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.13.0 lib/mini_scheduler/views/history.erb
mini_scheduler-0.12.3 lib/mini_scheduler/views/history.erb
mini_scheduler-0.12.2 lib/mini_scheduler/views/history.erb