|
@@ -21,7 +21,7 @@
|
|
|
<% @dashboard.blazer_dashboard_queries.order(:position).map(&:blazer_query).each_with_index do |query, i| %>
|
|
|
<div style="margin-top: 40px;">
|
|
|
<h4 style="text-align: center;"><%= link_to query.name, query_path(query), style: "color: inherit;" %></h4>
|
|
|
- <div id="chart-<%= i %>" style="height: 300px; text-align: center; line-height: 300px;"></div>
|
|
|
+ <div id="chart-<%= i %>" style="height: 300px; text-align: center; line-height: 300px;">Loading...</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
$.post("<%= run_queries_path %>", <%= json_escape({statement: query.statement, query_id: query.id, only_chart: true}.to_json).html_safe %>, function (data) {
|