Sha256: e41fc89cf7743d7ad54134ba54008d61aba0a35d13ade466b53f923dd9fae74a

Contents?: true

Size: 1.64 KB

Versions: 9

Compression:

Stored size: 1.64 KB

Contents

<% blazer_title @dashboard.name %>

<div class="topbar">
  <div class="container">
    <div class="row" style="padding-top: 13px;">
      <div class="col-sm-9">
        <%= render partial: "blazer/nav" %>
        <h3 style="line-height: 34px; display: inline; margin-left: 5px;">
          <%= @dashboard.name %>
        </h3>
      </div>
      <div class="col-sm-3 text-right">
        <%= link_to "Edit", edit_dashboard_path(@dashboard, variable_params), class: "btn btn-info" %>
      </div>
    </div>
  </div>
</div>

<div style="margin-bottom: 60px;"></div>

<% if @data_sources.any? { |ds| ds.cache_mode != "off" } %>
  <p class="text-muted" style="float: right;">
    Some queries may be cached
    <%= link_to "Refresh", refresh_dashboard_path(@dashboard, variable_params), method: :post %>
  </p>
<% end %>

<% if @bind_vars.any? %>
  <%= render partial: "blazer/variables", locals: {action: dashboard_path(@dashboard)} %>
<% else %>
  <div style="padding-bottom: 15px;"></div>
<% end %>

<% @queries.each_with_index do |query, i| %>
  <div class="chart-container">
    <h4><%= link_to query.friendly_name, query_path(query, variable_params), target: "_blank" %></h4>
    <div id="chart-<%= i %>" class="chart">
      <p class="text-muted">Loading...</p>
    </div>
  </div>
  <script>
    <%= blazer_js_var "data", {statement: query.statement, query_id: query.id, data_source: query.data_source, only_chart: true} %>

    runQuery(data, function (data) {
      $("#chart-<%= i %>").html(data)
      $("#chart-<%= i %> table").stupidtable()
    }, function (message) {
      $("#chart-<%= i %>").addClass("query-error").html(message)
    });
  </script>
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
sql-jarvis-2.0.9 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.8 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.7 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.6 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.5 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.4 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.3 app/views/blazer/dashboards/show.html.erb
sql-jarvis-2.0.2 app/views/blazer/dashboards/show.html.erb
blazer-2.0.1 app/views/blazer/dashboards/show.html.erb