mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
Merge pull request #87 from futhr/feature/move-inline-css
Move inline css to external file.
This commit is contained in:
commit
8d48aa1f5b
5 changed files with 37 additions and 8 deletions
|
@ -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;
|
||||||
|
}
|
|
@ -1,4 +1,6 @@
|
||||||
|
<style>
|
||||||
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
||||||
|
</style>
|
||||||
|
|
||||||
<header class="row">
|
<header class="row">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
|
@ -11,7 +13,7 @@
|
||||||
<%= erb File.read(File.join(view_path, '_worker_nav.erb')) %>
|
<%= erb File.read(File.join(view_path, '_worker_nav.erb')) %>
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<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>
|
<thead>
|
||||||
<th style="width: 10%">Status</th>
|
<th style="width: 10%">Status</th>
|
||||||
<th style="width: 20%">Timestamp</th>
|
<th style="width: 20%">Timestamp</th>
|
||||||
|
@ -28,8 +30,8 @@
|
||||||
<a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
|
<a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
|
||||||
<%= entry[:exception] %>: <%= entry[:error] %>
|
<%= entry[:exception] %>: <%= entry[:error] %>
|
||||||
</a>
|
</a>
|
||||||
<div style="display: none; overflow: auto; width: 100%; background: white; ">
|
<div class="backtrace">
|
||||||
<pre style="display: inline-block; font-size: 0.8em; border: none; white-space: nowrap; margin: 0">
|
<pre>
|
||||||
<%= entry[:backtrace].join("<br />") %>
|
<%= entry[:backtrace].join("<br />") %>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
<style>
|
||||||
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
||||||
|
</style>
|
||||||
|
|
||||||
<header class="row">
|
<header class="row">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<% if @locks.length > 0 %>
|
<% 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>
|
<thead>
|
||||||
<th style="width: 20%">Key</th>
|
<th style="width: 20%">Key</th>
|
||||||
<th style="width: 30%">Owner Node</th>
|
<th style="width: 30%">Owner Node</th>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
<style>
|
||||||
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
||||||
|
</style>
|
||||||
|
|
||||||
<header class="row">
|
<header class="row">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<% if (recurrences = @schedule.recurrence_rules).length > 0 %>
|
<% 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>
|
<thead>
|
||||||
<th>Recurrences</th>
|
<th>Recurrences</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<% if (exceptions = @schedule.exception_rules).length > 0 %>
|
<% 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>
|
<thead>
|
||||||
<th>Exceptions</th>
|
<th>Exceptions</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -41,7 +43,7 @@
|
||||||
|
|
||||||
<br />
|
<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>
|
<thead>
|
||||||
<th style="width: 25%">Next 10 runs</th>
|
<th style="width: 25%">Next 10 runs</th>
|
||||||
<th style="width: 75%" />
|
<th style="width: 75%" />
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
<style>
|
||||||
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
<%= File.read(File.join(view_path, 'assets', 'styles.css')) %>
|
||||||
|
</style>
|
||||||
|
|
||||||
<header class="row">
|
<header class="row">
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<% if @workers.length > 0 %>
|
<% 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>
|
<thead>
|
||||||
<th style="width: 50%">Worker</th>
|
<th style="width: 50%">Worker</th>
|
||||||
<th style="width: 10%">Queue</th>
|
<th style="width: 10%">Queue</th>
|
||||||
|
|
Loading…
Reference in a new issue