Sha256: 1dddc19ef16c761129202d6770f48e2bf4cea26bdd7e6a087d1093168417e7ca

Contents?: true

Size: 599 Bytes

Versions: 32

Compression:

Stored size: 599 Bytes

Contents

<%= content_for :title, params[:query_name].presence || "pg_extras" %>
<%= render "rails_pg_extras/web/shared/queries_selector" %>

<% if @error %>
  <div class="text-red-500 p-3 font-mono my-5"><%= @error %></div>
<% else %>
  <% if @result&.any? %>
    <%= render "result",
      title: RubyPgExtras.description_for(query_name: @query_name),
      headers: @result[0].keys,
      rows: @result.values
    %>
  <% else %>
   <div class="font-mono p-3 bg-gray-100 mt-3">No results</div>
  <% end %>
<% end %>

<style>
@media print {
  form {
    display: none
  }
}
</style>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rails-pg-extras-5.3.1 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.3.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.5 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.4 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.3 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.2 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.1 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.2.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.1.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-5.0.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.13.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.12.2 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.12.1 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.12.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.10.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.9.0 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.8.1 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.7.2 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.7.1 app/views/rails_pg_extras/web/queries/show.html.erb
rails-pg-extras-4.7.0 app/views/rails_pg_extras/web/queries/show.html.erb