Skip to content

Business intelligence made simple

Reduced inline styles [skip ci]

Andrew Kane3b2624da6c0a
diff --git a/app/assets/stylesheets/blazer/application.css b/app/assets/stylesheets/blazer/application.css
index c689cdbf..1c879ce1 100644
--- a/app/assets/stylesheets/blazer/application.css
+++ b/app/assets/stylesheets/blazer/application.css
@@ -252,3 +252,29 @@ h2 {
width: 20%;
text-align: right;
}
+
+.state-header {
+ width: 10%;
+}
+
+.run-header {
+ width: 10%;
+}
+
+.notify-header {
+ width: 20%;
+}
+
+.actions-header {
+ width: 15%;
+}
+
+.notifiers {
+ margin-bottom: 0;
+ word-break: break-all;
+}
+
+.table > tbody > tr > td.check-actions {
+ text-align: right;
+ padding: 1px;
+}
diff --git a/app/views/blazer/checks/index.html.erb b/app/views/blazer/checks/index.html.erb
index f95e079e..efc301ce 100644
--- a/app/views/blazer/checks/index.html.erb
+++ b/app/views/blazer/checks/index.html.erb
@@ -27,10 +27,10 @@
<thead>
<tr>
<th>Query</th>
- <th style="width: 10%;">State</th>
- <th style="width: 10%;">Run</th>
- <th style="width: 20%;">Notify</th>
- <th style="width: 15%;"></th>
+ <th class="state-header">State</th>
+ <th class="run-header">Run</th>
+ <th class="notify-header">Notify</th>
+ <th class="actions-header"></th>
</tr>
</thead>
<tbody>
@@ -44,13 +44,13 @@
</td>
<td><%= check.schedule if check.respond_to?(:schedule) %></td>
<td>
- <ul class="list-unstyled" style="margin-bottom: 0; word-break: break-all;">
+ <ul class="list-unstyled notifiers">
<% Blazer.notifiers.flat_map { |n| n.notify_list(check) }.each do |item| %>
<li><%= item %></li>
<% end %>
</ul>
</td>
- <td style="text-align: right; padding: 1px;">
+ <td class="check-actions">
<%= link_to "Edit", edit_check_path(check), class: "btn btn-info" %>
<%= button_to "Run Now", refresh_query_path(check.query), class: "btn btn-primary" %>
</td>