diff --git a/lib/sidetiq/views/assets/styles.css b/lib/sidetiq/views/assets/styles.css index e69de29..ed9f455 100644 --- a/lib/sidetiq/views/assets/styles.css +++ b/lib/sidetiq/views/assets/styles.css @@ -0,0 +1,21 @@ + +.table-sidetiq { + width: 100%; + margin: 0; + table-layout: fixed; +} + +.backtrace { + display: none; + overflow: auto; + width: 100%; + background: white; +} + +.backtrace pre { + display: inline-block; + font-size: 0.8em; + border: none; + white-space: nowrap; + margin: 0; +} \ No newline at end of file diff --git a/lib/sidetiq/views/history.erb b/lib/sidetiq/views/history.erb index 84a2242..7531fa8 100644 --- a/lib/sidetiq/views/history.erb +++ b/lib/sidetiq/views/history.erb @@ -1,4 +1,6 @@ +
@@ -11,7 +13,7 @@ <%= erb File.read(File.join(view_path, '_worker_nav.erb')) %>
- +
@@ -28,8 +30,8 @@ <%= entry[:exception] %>: <%= entry[:error] %> -
-
+            
+
                 <%= entry[:backtrace].join("
") %>
diff --git a/lib/sidetiq/views/locks.erb b/lib/sidetiq/views/locks.erb index e19009c..bf7320d 100644 --- a/lib/sidetiq/views/locks.erb +++ b/lib/sidetiq/views/locks.erb @@ -1,4 +1,6 @@ +
@@ -12,7 +14,7 @@
<% if @locks.length > 0 %> -
Status Timestamp
+
diff --git a/lib/sidetiq/views/schedule.erb b/lib/sidetiq/views/schedule.erb index f713afc..087a538 100644 --- a/lib/sidetiq/views/schedule.erb +++ b/lib/sidetiq/views/schedule.erb @@ -1,4 +1,6 @@ +
@@ -12,7 +14,7 @@
<% if (recurrences = @schedule.recurrence_rules).length > 0 %> -
Key Owner Node
+
@@ -27,7 +29,7 @@
<% if (exceptions = @schedule.exception_rules).length > 0 %> -
Recurrences
+
@@ -41,7 +43,7 @@
-
Exceptions
+
Next 10 runs diff --git a/lib/sidetiq/views/sidetiq.erb b/lib/sidetiq/views/sidetiq.erb index a2c9199..10b8cde 100644 --- a/lib/sidetiq/views/sidetiq.erb +++ b/lib/sidetiq/views/sidetiq.erb @@ -1,4 +1,6 @@ +
@@ -12,7 +14,7 @@
<% if @workers.length > 0 %> - +
Worker Queue