lib/sidetiq/views/sidetiq.erb in sidetiq-0.4.0.rc2 vs lib/sidetiq/views/sidetiq.erb in sidetiq-0.4.0.rc3
- old
+ new
@@ -9,18 +9,19 @@
<div class="container-fluid sidetiq-container">
<div class="row-fluid">
<%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_home_nav.erb')) %>
<div class="span9">
- <% if @schedules.length > 0 %>
+ <% if @workers.length > 0 %>
<table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;">
<thead>
<th style="width: 50%">Worker</th>
<th style="width: 10%">Queue</th>
<th style="width: 30%">Next Run</th>
<th style="width: 10%">Actions</th>
</thead>
- <% @schedules.each do |worker, schedule| %>
+ <% @workers.each do |worker| %>
+ <% schedule = worker.schedule %>
<tr>
<td>
<a href="<%= "#{root_path}sidetiq/#{worker.name}/schedule" %>"><%= worker.name %></a>
<td><%= worker.get_sidekiq_options["queue"] %></td>
<td>