mirror of
				https://github.com/endofunky/sidetiq.git
				synced 2022-11-09 13:53:30 -05:00 
			
		
		
		
	In fact its external style is exposed back using internal style. Only way to improve this is to add better extension support in sidekiq itself.
		
			
				
	
	
		
			61 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
<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 />
 |