lib/sidetiq/views/sidetiq.erb in sidetiq-0.5.0 vs lib/sidetiq/views/sidetiq.erb in sidetiq-0.6.0
- old
+ new
@@ -1,19 +1,21 @@
-<%= 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-sm-5">
<h3>Recurring Jobs</h3>
</div>
</header>
<div class="container">
<div class="row">
- <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_home_nav.erb')) %>
+ <%= erb File.read(File.join(view_path, '_home_nav.erb')) %>
<div class="col-md-9">
<% if @workers.length > 0 %>
- <table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;">
+ <table class="table table-striped table-bordered table-white table-sidetiq">
<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>