<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>

Recurring Job: <%= @worker.name %>

<%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %>
<% if (recurrences = @schedule.recurrence_rules).length > 0 %> <% recurrences.each do |rule| %> <% end %>
Recurrences
<%= rule.to_s %>
<% end %>
<% if (exceptions = @schedule.exception_rules).length > 0 %> <% exceptions.each do |rule| %> <% end %>
Exceptions
<%= rule.to_s %>
<% end %>
<% end %>
Next 10 runs <% @schedule.next_occurrences(10, @time).each do |time| %>
<%= relative_time(time) %>