Skip to content

Business intelligence made simple

Switched to tag [skip ci]

Andrew Kane424968c770b5
diff --git a/app/views/blazer/queries/run.html.erb b/app/views/blazer/queries/run.html.erb
index f303fa1f..bcfb79ca 100644
--- a/app/views/blazer/queries/run.html.erb
+++ b/app/views/blazer/queries/run.html.erb
@@ -139,11 +139,11 @@
<tr>
<% @columns.each_with_index do |key, i| %>
<% type = @column_types[i] %>
- <th style="width: <%= header_width %>%;" data-sort="<%= type %>">
- <div style="min-width: <%= @min_width_types.include?(i) ? 180 : 60 %>px;">
+ <%= tag.th style: "width: #{header_width}%;", data: {sort: type} do %>
+ <%= tag.div style: "min-width: #{@min_width_types.include?(i) ? 180 : 60}px;" do %>
<%= key %>
- </div>
- </th>
+ <% end %>
+ <% end %>
<% end %>
</tr>
</thead>