Sha256: a77e9ff87affaf76383e06818e476e343fc4e4960f1dfa5dfa019b04f7883401

Contents?: true

Size: 1.55 KB

Versions: 7

Compression:

Stored size: 1.55 KB

Contents

<style>
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
</style>

<header class="row">
  <div class="col-md-5">
    <h3>Recurring Job: <%= @worker.name %></h3>
  </div>
</header>

<div class="container">
  <div class="row">
    <%= erb File.read(File.join(view_path, '_worker_nav.erb')) %>

    <div class="col-md-9">
      <% if (recurrences = @schedule.recurrence_rules).length > 0 %>
      <table class="table table-striped table-bordered table-hover table-white table-sidetiq">
        <thead>
          <th>Recurrences</th>
        </thead>
        <% recurrences.each do |rule| %>
        <tr>
          <td><%= rule.to_s %></td>
        </tr>
        <% end %>
      </table>
      <% end %>

      <br />

      <% if (exceptions = @schedule.exception_rules).length > 0 %>
      <table class="table table-striped table-bordered table-hover table-white table-sidetiq">
        <thead>
          <th>Exceptions</th>
        </thead>
        <% exceptions.each do |rule| %>
        <tr>
          <td><%= rule.to_s %></td>
        </tr>
        <% end %>
      </table>
      <% end %>

      <br />

      <table class="table table-striped table-bordered table-hover table-white table-sidetiq">
        <thead>
          <th style="width: 25%">Next 10 runs</th>
          <th style="width: 75%" />
          <% @schedule.next_occurrences(10, @time).each do |time| %>
          <tr>
            <td><time><%= time.getutc %></time></td>
            <td><%= relative_time(time) %></td>
          </tr>
          <% end %>
      </table>
    </div>
  </div>
</div>

<br />

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidetiq-0.7.2 lib/sidetiq/views/schedule.erb
sidetiq-0.7.1 lib/sidetiq/views/schedule.erb
sidetiq-0.7.0 lib/sidetiq/views/schedule.erb
sidetiq-0.6.3 lib/sidetiq/views/schedule.erb
sidetiq-0.6.2 lib/sidetiq/views/schedule.erb
sidetiq-0.6.1 lib/sidetiq/views/schedule.erb
sidetiq-0.6.0 lib/sidetiq/views/schedule.erb