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