Sha256: cc83c73fa3d9ad64da663bb5a5df09a8a5922b2667704433d4f0cb3710efe4e4

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

<% blazer_title @dashboard.name %>

<% content_for :header do %>
  <%= render layout: "blazer/nav" do %>
    <%= link_to "Edit", edit_dashboard_path(@dashboard, variable_params(@dashboard)), class: "btn btn-link" %>
  <% end %>
<% end %>

<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(@dashboard)), 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(query)), target: "_blank" %></h4>
    <div id="chart-<%= i %>" class="chart">
      <p class="text-muted">Loading...</p>
    </div>
  </div>
  <script>
    <%= blazer_js_var "data", {statement: @statements[i], query_id: query.id, data_source: query.data_source, only_chart: true, cohort_period: params[:cohort_period]} %>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bnb_blazer-0.13.0 app/views/blazer/dashboards/show.html.erb
bnb_blazer-0.12.0 app/views/blazer/dashboards/show.html.erb
bnb_blazer-0.11.0 app/views/blazer/dashboards/show.html.erb
bnb_blazer-0.10.0 app/views/blazer/dashboards/show.html.erb