lib/sidetiq/views/schedule.erb in sidetiq-0.5.0 vs lib/sidetiq/views/schedule.erb in sidetiq-0.6.0
- old
+ new
@@ -1,20 +1,22 @@
-<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>
+<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(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %>
+ <%= 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" style="width: 100%; margin: 0; table-layout:fixed;">
+ <table class="table table-striped table-bordered table-hover table-white table-sidetiq">
<thead>
<th>Recurrences</th>
</thead>
<% recurrences.each do |rule| %>
<tr>
@@ -25,11 +27,11 @@
<% end %>
<br />
<% if (exceptions = @schedule.exception_rules).length > 0 %>
- <table class="table table-striped table-bordered table-hover table-white" style="width: 100%; margin: 0; table-layout:fixed;">
+ <table class="table table-striped table-bordered table-hover table-white table-sidetiq">
<thead>
<th>Exceptions</th>
</thead>
<% exceptions.each do |rule| %>
<tr>
@@ -39,10 +41,10 @@
</table>
<% end %>
<br />
- <table class="table table-striped table-bordered table-hover table-white" style="width: 100%; margin: 0; table-layout:fixed;">
+ <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>