lib/sidetiq/views/locks.erb in sidetiq-0.5.0 vs lib/sidetiq/views/locks.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-md-5">
<h3>Active Locks</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 @locks.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: 20%">Key</th>
<th style="width: 30%">Owner Node</th>
<th style="width: 10%">Timetamp</th>
<th style="width: 10%">TTL</th>