Sha256: 8781035e9bd498ac56f55a6da5b317771e410befb7e68ecce1a82466fa4d1c09

Contents?: true

Size: 724 Bytes

Versions: 8

Compression:

Stored size: 724 Bytes

Contents

<div class="content">
  <h1>Explain</h1>

  <%= form_tag explain_path do %>
    <%= text_area_tag :query, @query, placeholder: "Enter a SQL query" %>
    <p><%= submit_tag "Explain", class: "btn btn-info" %> <%= submit_tag "Analyze", class: "btn btn-danger" %></p>
  <% end %>

  <% if @explanation %>
    <pre><%= @explanation %></pre>
    <p><%= link_to "See how to interpret this", "http://www.postgresql.org/docs/current/static/using-explain.html", target: "_blank" %></p>
    <% if (index = @suggested_index) %>
      <%= render partial: "suggested_index", locals: {index: index, details: index[:details]} %>
    <% end %>
  <% elsif @error %>
    <div class="alert alert-danger"><%= @error %></div>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pghero-1.4.2 app/views/pg_hero/home/explain.html.erb
pghero-1.4.1 app/views/pg_hero/home/explain.html.erb
pghero-1.4.0 app/views/pg_hero/home/explain.html.erb
pghero-1.3.2 app/views/pg_hero/home/explain.html.erb
pghero-1.3.1 app/views/pg_hero/home/explain.html.erb
pghero-1.3.0 app/views/pg_hero/home/explain.html.erb
pghero-1.2.4 app/views/pg_hero/home/explain.html.erb
pghero-1.2.3 app/views/pg_hero/home/explain.html.erb